staging: gdm7240: fix memory leak on failure path
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Tue, 8 Oct 2013 20:50:16 +0000 (00:50 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:23:14 +0000 (15:23 -0700)
commit47052577bcb941da36a991fea3dadc0d3b14c741
tree6911409bf9ff8c2dfae5b25b5f8e5e7b735a4812
parenta4d8c83cb55ee58cdbdc4b8a27e3855516efa484
staging: gdm7240: fix memory leak on failure path

init_usb() may fail after some of mux_rxes already allocated.
So we need to release them on the failure path.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_mux.c