mwifiex: improve error path handling in usb.c
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 21 Jun 2012 03:21:13 +0000 (20:21 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Jun 2012 17:59:50 +0000 (13:59 -0400)
commit8311f0da95d483ceb76bafae6e0a8c90531fb577
tree3f9e221fb532fa6b648f8115ee5d9d7429785d0a
parente80c81dc1416e326482c601af3a19d0f9989638e
mwifiex: improve error path handling in usb.c

skb allocated during initialisation is reused for receiving
commands/events by USB interface. We miss to reset skb->data in
failure cases. This patch takes care of it.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/usb.c