From: Prasanna S. Panchamukhi Date: Thu, 24 Jun 2010 03:31:03 +0000 (+1000) Subject: md: raid10: Fix null pointer dereference in fix_read_error() X-Git-Tag: v2.6.35-rc4~52^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0544a21db02c1d8883158fd6f323364f830a120a;p=pandora-kernel.git md: raid10: Fix null pointer dereference in fix_read_error() Such NULL pointer dereference can occur when the driver was fixing the read errors/bad blocks and the disk was physically removed causing a system crash. This patch check if the rcu_dereference() returns valid rdev before accessing it in fix_read_error(). Cc: stable@kernel.org Signed-off-by: Prasanna S. Panchamukhi Signed-off-by: Rob Becker Signed-off-by: NeilBrown --- Reading git-diff-tree failed