diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-01-19 14:19:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 02:58:08 +0100 |
commit | f4895b8bc83a22a36446c4aee277e1750fcc6a18 (patch) | |
tree | e1c340f625af67069b23d693bde9e4ddb9da7ce6 /drivers/net/3c515.c | |
parent | mv643xx_eth: prevent interrupt storm on ifconfig down (diff) | |
download | linux-f4895b8bc83a22a36446c4aee277e1750fcc6a18.tar.xz linux-f4895b8bc83a22a36446c4aee277e1750fcc6a18.zip |
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 'drivers/net/3c515.c')
0 files changed, 0 insertions, 0 deletions