Bluetooth: Fix wrong set of skb fragments
authorGustavo Padovan <gustavo@padovan.org>
Tue, 15 May 2012 16:22:55 +0000 (13:22 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 16 May 2012 19:12:32 +0000 (16:12 -0300)
commitfbe0070092c3968927c63ab56c00b47c6aa3770f
tree0f72c292cd711a6cc91403dea5da56c2f20c00d9
parent08e6d907fe606b751adddce54ad8f51e0950bc3f
Bluetooth: Fix wrong set of skb fragments

If alloc() fails we let the frags linked list with garbage value (the
err ptr value) in its last element.

Reported-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c