mirror of https://gitee.com/openkylin/linux.git
8a10da2646
In case of __dev_alloc_skb() failure rtl8187_init_urbs() calls usb_free_urb(entry) where 'entry' can points to urb allocated at the previous iteration. That means refcnt will be decremented incorrectly and the urb can be used after memory deallocation. The patch fixes the issue and implements error handling of init_urbs in rtl8187_start(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
Makefile | ||
dev.c | ||
leds.c | ||
leds.h | ||
rfkill.c | ||
rfkill.h | ||
rtl8187.h | ||
rtl8225.c | ||
rtl8225.h |