Skip to content

Commit

Permalink
staging: ft1000: Check return value when init net device.
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 15, 2010
1 parent e09aee2 commit dd9b6aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ static int ft1000_probe(struct usb_interface *interface,
release_firmware(dsp_fw);

DEBUG("ft1000_probe: start downloading dsp image...\n");
init_ft1000_netdev(ft1000dev);

ret = init_ft1000_netdev(ft1000dev);
if (ret)
goto err_load;

pft1000info = (FT1000_INFO *) netdev_priv(ft1000dev->net);

DEBUG("In probe: pft1000info=%p\n", pft1000info);
Expand Down

0 comments on commit dd9b6aa

Please sign in to comment.