]> git.baikalelectronics.ru Git - kernel.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)
commit2fccf93401f0021f9f12f2dad23cb6a5cf8b7010
treee229a9e07fa93126d001423d1c482973b4798db0
parent2f7ff45cd2899530cbcca39ed9eb5a53b71ecb92
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