staging: ft1000: fix error path
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 3 Oct 2010 17:58:46 +0000 (21:58 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 18:42:19 +0000 (11:42 -0700)
commitb7378b9ed641b9e39f613d22c762a8ac2a15b8b8
tree71983304939e032981d128bbe8cc3a0eb278411f
parenta285bf995da256be5d96110ec0e7592cb6b2e600
staging: ft1000: fix error path

init_ft1000_netdev() calls kfree(netdev) instead of free_netdev(netdev).
It doesn't check kmalloc() return value.
ft1000_read_fifo_reg() doesn't free dr on error and calls kfree(urb)
instead of usb_free_urb(urb).  Also kfree(NULL) is OK.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c