]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: sony: remove duplicate NULL check before calling usb_free_urb()
authorJiri Kosina <jkosina@suse.cz>
Wed, 4 Oct 2023 19:10:41 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:59:08 +0000 (21:59 +0200)
commit949ccc91c35bddbc75227b50cf7f477bc394e8b9
treec49c9efe451d4ab1c11f18a8dc73ba477b6c5815
parenta02c02adc2bd9476f55c83d87923bf693fb9742e
HID: sony: remove duplicate NULL check before calling usb_free_urb()

[ Upstream commit b328dd02e19cb9d3b35de4322f5363516a20ac8c ]

usb_free_urb() does the NULL check itself, so there is no need to duplicate
it prior to calling.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e1cd4004cde7c9 ("HID: sony: Fix a potential memory leak in sony_probe()")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-sony.c