commit | 64ed8f51f97304f811f34e89afdccf7bf9836a93 | [log] [tgz] |
---|---|---|
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | Mon Dec 29 13:41:33 2014 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jan 17 15:22:31 2015 -0800 |
tree | 001efd2daa1db5b9e718dff6779530390b142f4f | |
parent | 0a5470f80ce7731160bbf8173e9df1ebeeb7e9e6 [diff] |
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>