[BLUETOOTH] sco: Possible double free.
authorEric Sesterhenn <snakebyte@gmx.de>
Thu, 6 Apr 2006 05:28:14 +0000 (22:28 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Apr 2006 05:25:29 +0000 (22:25 -0700)
commitcdee5751bf91d02616aaf30a5affef56105e3b79
tree8a7d6f231dc9de03c7d9bb5b6623bd539900abce
parentad96b485b4224785bcca478cfba02d06c46ee575
[BLUETOOTH] sco: Possible double free.

this fixes coverity bug id #1068.
hci_send_sco() frees skb if (skb->len > hdev->sco_mtu).
Since it returns a negative error value only in this case, we
can directly return here.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/sco.c