Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: usbfs: fix double-free of usb memory upon submiturb error

Upon an error within proc_do_submiturb(), dec_usb_memory_use_count()
gets called once by the error handling tail and again by free_async().
Remove the first call.

Signed-off-by: Gavin Li <git@thegavinli.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190804235044.22327-1-gavinli@thegavinli.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gavin Li and committed by
Greg Kroah-Hartman
c43f28df fc05481b

-2
-2
drivers/usb/core/devio.c
··· 1812 1812 return 0; 1813 1813 1814 1814 error: 1815 - if (as && as->usbm) 1816 - dec_usb_memory_use_count(as->usbm, &as->usbm->urb_use_count); 1817 1815 kfree(isopkt); 1818 1816 kfree(dr); 1819 1817 if (as)