net: usb: raw-ip: do not free skb if TX_BUSY flag set
authorVinayak Pane <vpane@nvidia.com>
Sat, 11 Feb 2012 05:00:10 +0000 (21:00 -0800)
committerSimone Willett <swillett@nvidia.com>
Mon, 16 Apr 2012 21:06:00 +0000 (14:06 -0700)
commit5847468a3ad998d65696446742a30f97619c954e
tree9f401fa978ccfc951a7d30a5330afa36f658eab9
parentb562e1901abf766e863e0790b06bdc9bdc309172
net: usb: raw-ip: do not free skb if TX_BUSY flag set

Consume skb buffers only in success case. In fatal error
case stop tx transmission instead. This prevents many retries
and possible kernel crash.

Bug 937178

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/83290
(cherry picked from commit 974ffdc61f26d86744e1a7b1003117da50df9020)

Change-Id: Ib2b982c0cea91d2ba5e30c04869c4f22dca7ed31
Reviewed-on: http://git-master/r/96331
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>
drivers/net/usb/raw_ip_net.c