]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: Avoid write invalid address if read_seqretry returned true.
authormajianpeng <majianpeng@gmail.com>
Thu, 8 Nov 2012 00:56:27 +0000 (08:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 19:37:59 +0000 (11:37 -0800)
commitfd7cb90238cf1ca0cb9b40364892607331be4acd
tree779ddc479e7d5dc7d3738faea3c1b984e65757a7
parentea95b5107c1cdc7774e986d1db421b4b22e979f9
md: Avoid write invalid address if read_seqretry returned true.

commit 35f9ac2dcec8f79d7059ce174fd7b7ee3290d620 upstream.

If read_seqretry returned true and bbp was changed, it will write
invalid address which can cause some serious problem.

This bug was introduced by commit v3.0-rc7-130-g2699b67.
So fix is suitable for 3.0.y thru 3.6.y.

Reported-by: zhuwenfeng@kedacom.com
Tested-by: zhuwenfeng@kedacom.com
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c