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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201008120307.27100.marek.vasut@gmail.com>
Date:	Thu, 12 Aug 2010 03:07:26 +0200
From:	Marek Vasut <marek.vasut@...il.com>
To:	Greg KH <gregkh@...e.de>
Cc:	linux-kernel@...r.kernel.org, stable@...nel.org,
	stable-review@...nel.org, torvalds@...ux-foundation.org,
	akpm@...ux-foundation.org, alan@...rguk.ukuu.org.uk,
	Artem Bityutskiy <Artem.Bityutskiy@...ia.com>,
	David Woodhouse <David.Woodhouse@...el.com>
Subject: Re: [60/67] mtd: gen_nand: fix support for multiple chips

Dne Čt 12. srpna 2010 02:06:15 Greg KH napsal(a):
> 2.6.35-stable review patch.  If anyone has any objections, please let us
> know.

It's going to break plat-qong, apparently the code there is incorrect and 
depends on this bug, I'll send a patch for it in a bit.
> 
> ------------------
> 
> From: Marek Vasut <marek.vasut@...il.com>
> 
> commit 81cbb0b17796d81cbd92defe113cf2a7c7a21fbb upstream.
> 
> This patch corrects a problem where gen_nand driver assumed there can be
> only one chip and ignored the pdata->chip.nr_chips value.
> 
> Signed-off-by: Marek Vasut <marek.vasut@...il.com>
> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@...ia.com>
> Signed-off-by: David Woodhouse <David.Woodhouse@...el.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
> 
> ---
>  drivers/mtd/nand/plat_nand.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/mtd/nand/plat_nand.c
> +++ b/drivers/mtd/nand/plat_nand.c
> @@ -91,7 +91,7 @@ static int __devinit plat_nand_probe(str
>  	}
> 
>  	/* Scan to find existance of the device */
> -	if (nand_scan(&data->mtd, 1)) {
> +	if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
>  		err = -ENXIO;
>  		goto out;
>  	}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ