lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <87a5b0800903040241k51f65a65p82a2da8f6de1c832@mail.gmail.com>
Date:	Wed, 4 Mar 2009 10:41:12 +0000
From:	Will Newton <will.newton@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	David Brownell <david-b@...bell.net>,
	David Woodhouse <David.Woodhouse@...el.com>
Subject: [PATCH] mtd_dataflash: Fix probing of AT45DB321C chips.

Commit 771999b65f79264acde4b855e5d35696eca5e80c broke support for probing
AT45DB321C flash chips. These chips do not support the "page size" status
bit, so if we match the JEDEC id return early.

Signed-off-by: Will Newton <will.newton@...il.com>
---
 drivers/mtd/devices/mtd_dataflash.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/devices/mtd_dataflash.c
b/drivers/mtd/devices/mtd_dataflash.c
index d44f741..cd4781f 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -822,6 +822,8 @@ static struct flash_info *__devinit
jedec_probe(struct spi_device *spi)
 						return info;
 				}
 			}
+			else
+				return info;
 		}
 	}

-- 
1.5.5.2

Download attachment "0001-mtd_dataflash-Fix-probing-of-AT45DB321C-chips.patch" of type "application/octet-stream" (942 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ