Skip to contentSkip to conversation

Fix incorrect address test in AT91F_DataflashSelect

PATCH New Stelian Pop 2 participants 2 messages Jan 14, 2008 – Feb 13, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix incorrect address test in AT91F_DataflashSelect

Fix incorrect address test in AT91F_DataflashSelect().

---
 drivers/mtd/dataflash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/dataflash.c +1 -1
index 4084ff7..2421407 100644
@@ -309,7 +309,7 @@ AT91PS_DataFlash AT91F_DataflashSelect (AT91PS_DataFlash pFlash,
 
 	for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++)
 		if ( dataflash_info[i].id
-			&& ((((int) addr) & 0xFF000000) ==
+			&& ((((int) *addr) & 0xFF000000) ==
 			dataflash_info[i].logical_address)) {
 			addr_valid = 1;
 			break;
Signature · 5 lines
1.5.3.3


-- 
Stelian Pop <[email protected]>
#1 lore raw

PATCH 1/1 Fix incorrect address test in AT91F_DataflashSelect

Quoted 3 lines · In message <1200344894.5988.7.camel@galileo> you wrote:

Fix incorrect address test in AT91F_DataflashSelect().

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Earth -- mother of the most beautiful women in the universe.
	-- Apollo, "Who Mourns for Adonais?" stardate 3468.1