]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: fix failure handling in usbnet_probe
authortom.leiming@gmail.com <tom.leiming@gmail.com>
Sun, 29 Apr 2012 22:51:03 +0000 (22:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 00:13:04 +0000 (20:13 -0400)
commit8f15a9a00ac245d4b772da00a7cf61d7acd62570
tree8d3e6a96e1e609700aa10a26148900172362a7c0
parentb86f74d72bca5e04b802e732263c9493470aeb4c
usbnet: fix failure handling in usbnet_probe

If register_netdev returns failure, the dev->interrupt and
its transfer buffer should be released, so just fix it.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c