Bluetooth: Fix memory leak in L2CAP
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>
Wed, 23 Dec 2009 11:07:14 +0000 (13:07 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 30 Jan 2010 13:57:20 +0000 (05:57 -0800)
commite420aba331f44de0eed6871441293a6124d566d1
tree1a6b994bb9d3d083ed36c7212322e8159ebc5f13
parentfcafde2e6d81aa7901f9b10e6a097592f0637b79
Bluetooth: Fix memory leak in L2CAP

Move skb_clone after error confition check so it is not going
potentially out of the scope.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c