staging: ft1000: Fix memory leak when polling fail.
authorMarek Belisko <marek.belisko@gmail.com>
Tue, 12 Oct 2010 08:26:41 +0000 (10:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 16:05:50 +0000 (09:05 -0700)
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c

index cf041f3..dc2ef98 100644 (file)
@@ -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");