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)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:55:03 +0000 (10:55 +0530)
commit0d423b288e71dc4fb92cb9d98f68846c6c50a607
treedf8a540244414ff58e7799f454724619c7b72f41
parentb99fe09dc419f1ca9e6bfafaa4df91028090aa3a
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