Skip to content

Commit

Permalink
staging: ft1000: Fix memory leak when polling fail.
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Oct 12, 2010
1 parent 5cb9954 commit 7bfc9ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7bfc9ca

Please sign in to comment.