[PATCH] md: Avoid oops when attempting to fix read errors on raid10
commit37f94ce7266457a8d8b463edbebacd9bcedfd183
authorNeilBrown <neilb@suse.de>
Mon, 1 May 2006 19:15:44 +0000 (1 12:15 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 20 May 2006 22:00:27 +0000 (20 15:00 -0700)
tree780e827fca63248b31299e3f483aaa84dfe4d14a
parent22ddf44d54d0b2326f7b233e836e7155d45d3a7d
[PATCH] md: Avoid oops when attempting to fix read errors on raid10

We should add to the counter for the rdev *after* checking if the rdev is
NULL!!!

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/md/raid10.c