[PATCH] md: Avoid oops when attempting to fix read errors on raid10
commitdf30d0f4ca3c41b60068232d6de9d58be88436f0
authorNeilBrown <neilb@suse.de>
Mon, 1 May 2006 19:15:44 +0000 (1 12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:42 +0000 (1 18:17 -0700)
treef9ea546b15f0c8908d6248480c7f3dad820a5f5e
parent235acec78e87a60ace01d1ecb4b87ad1d689715a
[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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid10.c