staging: ft1000: ft1000-usb: ft1000_hw.c: Fix a potential memory leak.
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Mon, 29 Dec 2014 12:41:33 +0000 (13:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:22:31 +0000 (15:22 -0800)
commit64ed8f51f97304f811f34e89afdccf7bf9836a93
tree001efd2daa1db5b9e718dff6779530390b142f4f
parent0a5470f80ce7731160bbf8173e9df1ebeeb7e9e6
staging: ft1000: ft1000-usb: ft1000_hw.c: Fix a potential memory leak.

Avoid allocate memory if we will exit the function.

Was found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c