kernel_optimize_test/drivers/net/wimax/i2400m
Xiyu Yang 7717cbec17 wimax/i2400m: Fix potential urb refcnt leak
i2400mu_bus_bm_wait_for_ack() invokes usb_get_urb(), which increases the
refcount of the "notif_urb".

When i2400mu_bus_bm_wait_for_ack() returns, local variable "notif_urb"
becomes invalid, so the refcount should be decreased to keep refcount
balanced.

The issue happens in all paths of i2400mu_bus_bm_wait_for_ack(), which
forget to decrease the refcnt increased by usb_get_urb(), causing a
refcnt leak.

Fix this issue by calling usb_put_urb() before the
i2400mu_bus_bm_wait_for_ack() returns.

Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-18 15:00:22 -07:00
..
control.c wimax/i2400m/control: Mark expected switch fall-through 2019-04-26 11:28:47 -04:00
debug-levels.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 268 2019-06-05 17:30:29 +02:00
debugfs.c wimax: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops 2019-10-30 17:43:25 -07:00
driver.c wimax: remove some redundant assignments to variable result 2020-04-06 10:20:03 -07:00
fw.c wimax/i2400m: remove debug containing bogus calculation of index 2019-08-30 12:31:52 -07:00
i2400m-usb.h
i2400m.h wimax: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
netdev.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
op-rfkill.c wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle 2019-10-29 16:20:25 -07:00
rx.c wimax/i2400m: remove redundant assignment to variable result 2019-08-28 14:49:37 -07:00
sysfs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 268 2019-06-05 17:30:29 +02:00
tx.c wimax/i2400m: remove unlikely() from WARN*() condition 2019-09-26 10:10:30 -07:00
usb-debug-levels.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 268 2019-06-05 17:30:29 +02:00
usb-fw.c wimax/i2400m: Fix potential urb refcnt leak 2020-04-18 15:00:22 -07:00
usb-notif.c
usb-rx.c
usb-tx.c
usb.c net: Fix various misspellings of "connect" 2019-10-28 13:41:59 -07:00