-
Nicholas Mc Guire authored
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 <hofrat@osadl.org> Fixes: cd2315d4 ("ipmi: kcs_bmc: don't change device name") Signed-off-by:
Corey Minyard <cminyard@mvista.com> Reviewed-by:
Haiyue Wang <haiyue.wang@linux.intel.com>
42c7c6efNicholas Mc Guire authoreddevm_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 <hofrat@osadl.org> Fixes: cd2315d4 ("ipmi: kcs_bmc: don't change device name") Signed-off-by:
Corey Minyard <cminyard@mvista.com> Reviewed-by:
Haiyue Wang <haiyue.wang@linux.intel.com>
Loading