summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-28 21:40:43 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-25 17:40:16 +0100
commita6d2fb1874c52ace1f5cf1966ee558829c5c19b6 (patch)
tree1445da726ea3fe6d083d5cd18035e4e029b0fa3d /net/core
parent219446396786330937bcd382a7bc4ccd767383bc (diff)
downloadlinux-stable-a6d2fb1874c52ace1f5cf1966ee558829c5c19b6.tar.gz
linux-stable-a6d2fb1874c52ace1f5cf1966ee558829c5c19b6.tar.bz2
linux-stable-a6d2fb1874c52ace1f5cf1966ee558829c5c19b6.zip
HID: hyperv: fix possible memory leak in mousevsc_probe()
[ Upstream commit b5bcb94b0954a026bbd671741fdb00e7141f9c91 ] If hid_add_device() returns error, it should call hid_destroy_device() to free hid_dev which is allocated in hid_allocate_device(). Fixes: 74c4fb058083 ("HID: hv_mouse: Properly add the hid device") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Wei Liu <wei.liu@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions