]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: most: hdm-usb: fix mbo buffer leak
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>
Tue, 4 Oct 2016 15:10:21 +0000 (17:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:25:14 +0000 (10:25 +0200)
commit3a542007fdd4e1a387f390eb5b2b0a4ad3c372c7
treee229a9e07fa93126d001423d1c482973b4798db0
parent02245b607718c8cd9c977f41637c9efff6493375
staging: most: hdm-usb: fix mbo buffer leak

This patch fixes an MBO leak by replacing the proprietary
free_anchored_buffers() function with the usb_kill_anchored_urbs() function
of the USB subsystem and guarantees that the mbo->complete() completion
function is being called for each URB.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c