diff options
author | Nicholas Mc Guire <[email protected]> | 2018-11-21 16:08:25 +0100 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2019-02-09 19:48:42 -0600 |
commit | 42c7c6ef1e6fa5fc0425120f06f045190b1dda2d (patch) | |
tree | 26010cb2ef893366597949cbfa3b24cc5e0afb1b /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 95ac0daa0ca98ad8ac23769021144f8bf04cf406 (diff) |
ipmi: kcs_bmc: handle devm_kasprintf() failure case
devm_kasprintf() may return NULL if internal allocation failed so this
assignment is not safe. Moved the error exit path and added the !NULL
which then allows the devres manager to take care of cleanup.
Signed-off-by: Nicholas Mc Guire <[email protected]>
Fixes: cd2315d471f4 ("ipmi: kcs_bmc: don't change device name")
Signed-off-by: Corey Minyard <[email protected]>
Reviewed-by: Haiyue Wang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions