diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-12-02 01:38:49 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-02 17:48:04 +0100 |
commit | d7237462561fcd224fa687c56ccb68629f50fc0d (patch) | |
tree | 160f71ecb3e313b7f80925e2b762e592c3378508 /Documentation/accounting | |
parent | bbb09f8353c1192ce436eb32ffae9105bc6e1d27 (diff) | |
download | linux-d7237462561fcd224fa687c56ccb68629f50fc0d.tar.gz linux-d7237462561fcd224fa687c56ccb68629f50fc0d.tar.bz2 linux-d7237462561fcd224fa687c56ccb68629f50fc0d.zip |
drivers: mcb: fix resource leak in mcb_probe()
When probe hook function failed in mcb_probe(), it doesn't put the device.
Compiled test only.
Fixes: 7bc364097a89 ("mcb: Acquire reference to device in probe")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Johannes Thumshirn <jth@kernel.org>
Link: https://lore.kernel.org/r/9f87de36bfb85158b506cb78c6fc9db3f6a3bad1.1669624063.git.johannes.thumshirn@wdc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/accounting')
0 files changed, 0 insertions, 0 deletions