diff options
author | Marek Belisko <marek.belisko@gmail.com> | 2010-10-12 10:26:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-12 18:05:50 +0200 |
commit | 7bfc9ca790d66192aebec690c10ea11fea9fd578 (patch) | |
tree | 207a2ce1256a90fc679d0106acee3e431a8c93e7 | |
parent | staging: ft1000-usb: Remove global flag DSP_loading. (diff) | |
download | linux-7bfc9ca790d66192aebec690c10ea11fea9fd578.tar.xz linux-7bfc9ca790d66192aebec690c10ea11fea9fd578.zip |
staging: ft1000: Fix memory leak when polling fail.
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c index cf041f3b899d..dc2ef98f428b 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c @@ -200,7 +200,8 @@ static int ft1000_probe(struct usb_interface *interface, const struct usb_device { kthread_stop(pft1000info->pPollThread ); } - return 0; + ret = -EIO; + goto err_load; } msleep(100); DEBUG("ft1000_probe::Waiting for Card Ready\n"); |