diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-09-03 20:37:17 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-09 18:42:00 (GMT) |
commit | 8a10da264663f97ad8b5c85343274ad903b32196 (patch) | |
tree | 39664637fe66be580f89b08299dfc01d2d822917 /drivers/bcma | |
parent | c4bff5d99da44b8aa2181cda6adf45479388d616 (diff) | |
download | linux-8a10da264663f97ad8b5c85343274ad903b32196.tar.xz |
rtl8187: fix use after free on failure path in rtl8187_init_urbs()
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>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions