aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2020-06-15 18:14:05 +0530
committerDan Williams <[email protected]>2020-06-15 18:22:44 -0700
commitb5f38f09e1558c20265a2976b0337bab143a66c7 (patch)
treebaba9e83d556a3352605cbe375995eb30b875cd6 /drivers/usb
parentb791abf3201d724ac372c2ba1fa6e90d192e1dbf (diff)
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 'drivers/usb')
0 files changed, 0 insertions, 0 deletions