aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2020-06-15 12:44:05 +0000
committerDan Williams <[email protected]>2020-06-16 01:22:44 +0000
commitb5f38f09e1558c20265a2976b0337bab143a66c7 (patch)
treebaba9e83d556a3352605cbe375995eb30b875cd6 /tools/perf/scripts/python
parentpowerpc/papr_scm: Fetch nvdimm health information from PHYP (diff)
downloadkernel-b5f38f09e1558c20265a2976b0337bab143a66c7.tar.gz
kernel-b5f38f09e1558c20265a2976b0337bab143a66c7.zip
powerpc/papr_scm: Improve error logging and handling papr_scm_ndctl()
Since papr_scm_ndctl() can be called from outside papr_scm, its exposed to the possibility of receiving NULL as value of 'cmd_rc' argument. This patch updates papr_scm_ndctl() to protect against such possibility by assigning it pointer to a local variable in case cmd_rc == NULL. Finally the patch also updates the 'default' add a debug log unknown 'cmd' values. Signed-off-by: Vaibhav Jain <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Cc: "Aneesh Kumar K . V" <[email protected]> Cc: Dan Williams <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions