]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
btsdio: free sk_buff with kfree_skb
authorSergio Luis <sergio@larces.uece.br>
Mon, 27 Oct 2008 06:08:48 +0000 (23:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Oct 2008 06:08:48 +0000 (23:08 -0700)
free sk_buff with kfree_skb, instead of kree

Signed-off-by: Sergio Luis <sergio@larces.uece.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bluetooth/btsdio.c

index 58630cc1eff2f1047ed0049edcbb9c4e578d511f..cda6c7cc944b1470a00ab1bafc8942236417b30a 100644 (file)
@@ -152,7 +152,7 @@ static int btsdio_rx_packet(struct btsdio_data *data)
 
        err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4);
        if (err < 0) {
-               kfree(skb);
+               kfree_skb(skb);
                return err;
        }