ti-st: do not free skb in st_send_frame if receive call returns error
authorNagarjuna Kristam <nkristam@nvidia.com>
Fri, 2 Mar 2012 07:10:56 +0000 (12:10 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 8 Mar 2012 05:29:05 +0000 (21:29 -0800)
commit8de83f0f826e8b5f9d043d60e144ecdb3ac79bc4
tree13ba14f6c73b5aa92da319a015f15e36c87ebe8f
parent7feb24c911f64c9c950c364a44dab1972d0e4ef3
ti-st: do not free skb in st_send_frame if receive call returns error

In st_send_frame, do not free skb when recveive[hci_recv_frame] function call
returns failure. Since, skb is already freed in hci_recv_frame on failure.

Bug 946756
Bug 949028

Change-Id: I3ef9a77f408a6a5329a0817547e0c0e08ec45f87
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/87138
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/misc/ti-st/st_core.c