]> git.baikalelectronics.ru Git - kernel.git/commit
[IRDA]: irda-usb, unregister netdev when patch upload fails
authorSamuel Ortiz <samuel.ortiz@nokia.com>
Fri, 14 Apr 2006 23:02:07 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Apr 2006 23:02:07 +0000 (16:02 -0700)
commit958b308591e2ab4383f82e9e40b5a973cb9a3b38
tree52c3fa23e1f100df0acdf68f946a908e39ddedb9
parentaf7d096531900366b024a052bd28383d2a343696
[IRDA]: irda-usb, unregister netdev when patch upload fails

In the STIR421x case, when the firmware upload fails, we need to
unregister_netdev. Otherwise we hit a BUG on free_netdev(), if sysfs
is enabled.

Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/irda-usb.c