USB: rio500: fix memory leak in close after disconnect
authorOliver Neukum <oneukum@suse.com>
Thu, 9 May 2019 09:30:59 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:17:12 +0000 (09:17 +0200)
commitb4c1b4a61f78f2f743ccd42244a21add70c6c702
treedaed9c67a4f93d8a9b9bbc601bbfa9fdc33e94ab
parentd2d93077bac37c6895d8c58f564699a3a897c5db
USB: rio500: fix memory leak in close after disconnect

commit e0feb73428b69322dd5caae90b0207de369b5575 upstream.

If a disconnected device is closed, rio_close() must free
the buffers.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/rio500.c