[Top] [All Lists]

[PATCH] Fix potential bug in au1xxx_ddma_add_device()

Subject: [PATCH] Fix potential bug in au1xxx_ddma_add_device()
From: Freddy Spierenburg <>
Date: Fri, 31 Mar 2006 17:06:57 +0200
Original-recipient: rfc822;
User-agent: Mutt/1.5.11+cvs20060126

Can anybody with a AMD DBAu1200 or DBAu1550 board test this patch
out? Unfortunately I don't have one so I was not able to try it
out to see if I do not brake something else.

While trying to understand the MMC driver I found a potential
glitch in the design of au1xxx_ddma_add_device(). It uses
find_dbdev_id(0) to find an available empty device slot in
the array dbdev_tab. But id 0 is already taken by
DSCR_CMD0_UART0_TX, so this entry will always be overwritten the
first time au1xxx_ddma_add_device() is called. This can lead to
some surprising effects when one expects the data for
DSCR_CMD0_UART0_TX to be in that slot.

Signed-off-by: Freddy Spierenburg <>

$ cat ~/.signature
Freddy Spierenburg <>
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read before complain!

Attachment: dbdma.patch
Description: Text document

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Fix potential bug in au1xxx_ddma_add_device(), Freddy Spierenburg <=