]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: usbfs: only account once for mmap()'ed usb memory usage
authorGavin Li <git@thegavinli.com>
Wed, 14 Aug 2019 21:29:24 +0000 (14:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2019 16:57:36 +0000 (09:57 -0700)
commitb08a6259a141baba98c57524ee4283fd91445bb8
tree72fcc29c926f8e1ab5c95762cf558b54ee18cd70
parenta599e48662b4b505bef45d4831061f9d50703e17
usb: usbfs: only account once for mmap()'ed usb memory usage

Memory usage for USB memory allocated via mmap() is already accounted
for at mmap() time; no need to account for it again at submiturb time.

Signed-off-by: Gavin Li <git@thegavinli.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20190814212924.10381-1-gavinli@thegavinli.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c