commit | 4f3b193dee4423d8c89c9a3e8e05f9197ea459a4 | [log] [tgz] |
---|---|---|
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Sat Feb 13 11:58:16 2016 +0200 |
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Sat Feb 20 09:59:32 2016 +0200 |
tree | 56561ff7da6f2fb42e868270e6988f7218f361d4 | |
parent | c0b5eed110dcf520aadafefbcc40658cbdd18b95 [diff] |
tpm: fix: return rc when devm_add_action() fails 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: 8e0ee3c9faed ("tpm: fix the cleanup of struct tpm_chip")