]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wimax/i2400m/control.c
wimax/i2400m: error paths that need to free an skb should use kfree_skb()
[linux-2.6-omap-h63xx.git] / drivers / net / wimax / i2400m / control.c
index d3d37fed689382db0f61d1eb045e5ea0ae5c87a8..15d9f51b292c8e5ac1787c8ef5d94174b19b8434 100644 (file)
@@ -609,7 +609,7 @@ void i2400m_msg_to_dev_cancel_wait(struct i2400m *i2400m, int code)
        spin_lock_irqsave(&i2400m->rx_lock, flags);
        ack_skb = i2400m->ack_skb;
        if (ack_skb && !IS_ERR(ack_skb))
-               kfree(ack_skb);
+               kfree_skb(ack_skb);
        i2400m->ack_skb = ERR_PTR(code);
        spin_unlock_irqrestore(&i2400m->rx_lock, flags);
 }