diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-11-23 22:58:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 15:25:21 +0100 |
commit | e5548b05631ec3e6bfdaef1cad28c799545b791b (patch) | |
tree | cb12dd2ed714d34835a976dfaa8d8fe723617323 /include/linux/usb_usual.h | |
parent | 3b78ef0da32f3288c292b2ecf680c31b4674b50d (diff) | |
download | lwn-e5548b05631ec3e6bfdaef1cad28c799545b791b.tar.gz lwn-e5548b05631ec3e6bfdaef1cad28c799545b791b.zip |
usb: oxu210hp-hcd: Fix memory leak in oxu_create
usb_create_hcd will alloc memory for hcd, and we should
call usb_put_hcd to free it when adding fails to prevent
memory leak.
Fixes: b92a78e582b1a ("usb host: Oxford OXU210HP HCD driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201123145809.1456541-1-zhangqilong3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb_usual.h')
0 files changed, 0 insertions, 0 deletions