diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2017-05-22 13:02:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-13 10:48:24 +0200 |
commit | b3b51417d0af63fb9a06662dc292200aed9ea53f (patch) | |
tree | 4f51af5a0ad49953f0fa71f69b1837f15b84aa2a /tools/usb | |
parent | c01b244ad848ac7f0faa141182db80650a8a761a (diff) | |
download | linux-b3b51417d0af63fb9a06662dc292200aed9ea53f.tar.gz linux-b3b51417d0af63fb9a06662dc292200aed9ea53f.tar.bz2 linux-b3b51417d0af63fb9a06662dc292200aed9ea53f.zip |
usb: usbip: set buffer pointers to NULL after free
The usbip stack dynamically allocates the transfer_buffer and
setup_packet of each urb that got generated by the tcp to usb stub code.
As these pointers are always used only once we will set them to NULL
after use. This is done likewise to the free_urb code in vudc_dev.c.
This patch fixes double kfree situations where the usbip remote side
added the URB_FREE_BUFFER.
Cc: stable@vger.kernel.org
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb')
0 files changed, 0 insertions, 0 deletions