Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: cd2315d ("ipmi: kcs_bmc: don't change device name") Signed-off-by: Corey Minyard <[email protected]> Reviewed-by: Haiyue Wang <[email protected]>
- Loading branch information