aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2014-06-06 07:52:57 +0000
committerNicholas Bellinger <[email protected]>2014-06-06 08:22:41 +0000
commitf1453773514bb8b0bba0716301e8c8f17f8d39c7 (patch)
treefd8b84b89093cfd1c148413250a2aa26af394106 /tools/perf/scripts/python/syscall-counts-by-pid.py
parenttarget: Allow READ_CAPACITY opcode in ALUA Standby access state (diff)
downloadkernel-f1453773514bb8b0bba0716301e8c8f17f8d39c7.tar.gz
kernel-f1453773514bb8b0bba0716301e8c8f17f8d39c7.zip
target: Fix alua_access_state attribute OOPs for un-configured devices
This patch fixes a OOPs where an attempt to write to the per-device alua_access_state configfs attribute at: /sys/kernel/config/target/core/$HBA/$DEV/alua/$TG_PT_GP/alua_access_state results in an NULL pointer dereference when the backend device has not yet been configured. This patch adds an explicit check for DF_CONFIGURED, and fails with -ENODEV to avoid this case. Reported-by: Chris Boot <[email protected]> Reported-by: Philip Gaw <[email protected]> Cc: Chris Boot <[email protected]> Cc: Philip Gaw <[email protected]> Cc: [email protected] # 3.8+ Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions