diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2016-02-13 11:58:16 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2016-02-20 09:59:32 +0200 |
commit | 4f3b193dee4423d8c89c9a3e8e05f9197ea459a4 (patch) | |
tree | 56561ff7da6f2fb42e868270e6988f7218f361d4 /net/lapb/lapb_in.c | |
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")
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions