diff options
author | Prasanna S. Panchamukhi <prasanna.panchamukhi@riverbed.com> | 2010-06-24 03:31:03 (GMT) |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-06-24 03:31:03 (GMT) |
commit | 0544a21db02c1d8883158fd6f323364f830a120a (patch) | |
tree | 086c38e3c9132a8ecdee0ccbdd845ce2604caad9 /mm/rmap.c | |
parent | f3b99be19ded511a1bf05a148276239d9f13eefa (diff) | |
download | linux-fsl-qoriq-0544a21db02c1d8883158fd6f323364f830a120a.tar.xz |
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 <prasanna.panchamukhi@riverbed.com>
Signed-off-by: Rob Becker <rbecker@riverbed.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions