alistair23-linux/drivers/net/wireless/rtl818x/rtl8187
Alexey Khoroshilov a31267c308 rtl8187: fix use after free on failure path in rtl8187_probe()
If allocation of io_dmabuf fails, rtl8187_probe() calls usb_put_dev(udev)
while usb_get_dev(udev) is not called yet. As a result refcnt is decremented
incorrectly and usb_dev can be used after memory deallocation.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-03-31 13:47:41 -04:00
..
dev.c rtl8187: fix use after free on failure path in rtl8187_probe() 2014-03-31 13:47:41 -04:00
leds.c rtl8187: ->brightness_set can not sleep 2012-06-08 13:43:57 -04:00
leds.h
Makefile
rfkill.c
rfkill.h
rtl8187.h rtl8187: fix regression on MIPS without coherent DMA 2014-02-13 14:58:12 -05:00
rtl8225.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
rtl8225.h Update e-mail address for Andrea Merello (resubmit) 2013-08-26 14:10:40 -04:00