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)
committerNeilBrown <neilb@suse.de>
Mon, 19 Nov 2012 23:27:17 +0000 (10:27 +1100)
commit35f9ac2dcec8f79d7059ce174fd7b7ee3290d620
tree0192c0d2874221bf8672e278c86fd0239cb32b08
parentab05613a0646dcc11049692d54bae76ca9ffa910
md: Avoid write invalid address if read_seqretry returned true.

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
Cc: stable@vger.kernel.org
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c