tpm: fix: return rc when devm_add_action() fails
BugLink: http://bugs.launchpad.net/bugs/1398274 Call put_device() and return error code if devm_add_action() fails. Signed-off-by:Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reported-by:
Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Fixes: 8e0ee3c9 ("tpm: fix the cleanup of struct tpm_chip") (cherry picked from commit 4f3b193d) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
Showing
Please register or sign in to comment