Staging: serqt_usb2: fix memory leak in error case
authorOliver Neukum <oliver@neukum.org>
Mon, 13 Jul 2009 08:46:57 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jul 2009 21:07:10 +0000 (14:07 -0700)
commitde8f8bd63334fe2014be7d9ab3a81ce9b96e5d19
tree6de13d80966d2db57942038d1d61186611247321
parentf3a756883ac028c536479e2eb283477fec80c828
Staging: serqt_usb2: fix memory leak in error case

a standard memory leak, as later allocations may fail even if prior
allocations did not. Then the prior allocations must be undone.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/serqt_usb2/serqt_usb2.c