aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPrasanna S. Panchamukhi <[email protected]>2010-06-24 13:31:03 +1000
committerNeilBrown <[email protected]>2010-06-24 13:31:03 +1000
commit0544a21db02c1d8883158fd6f323364f830a120a (patch)
tree086c38e3c9132a8ecdee0ccbdd845ce2604caad9 /tools/perf/util/scripting-engines/trace-event-python.c
parentf3b99be19ded511a1bf05a148276239d9f13eefa (diff)
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: [email protected] Signed-off-by: Prasanna S. Panchamukhi <[email protected]> Signed-off-by: Rob Becker <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions