diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-01-19 13:19:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-19 17:58:08 -0800 |
commit | f4895b8bc83a22a36446c4aee277e1750fcc6a18 (patch) | |
tree | e1c340f625af67069b23d693bde9e4ddb9da7ce6 /usr | |
parent | fe65e704534de5d0661ebc3466a2b9018945f694 (diff) |
wimax/i2400m: error paths that need to free an skb should use kfree_skb()
Roel Kluin reported a bug in two error paths where skbs were wrongly
being freed using kfree(). He provided a fix where it was replaced to
kfree_skb(), as it should be.
However, in i2400mu_rx(), the error path was missing returning an
indication of the failure. Changed to reset rx_skb to NULL and return
it to the caller, i2400mu_rxd(). It will be treated as a transient
error and just ignore the packet.
Depending on the buffering conditions inside the device, the data
packet might be dropped or the device will signal the host again for
data-ready-to-read and the host will retry.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions