]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52861a86f5de94381057f08a32595f892d6f188e
tree0f72c292cd711a6cc91403dea5da56c2f20c00d9
parente3edad04f1a454b2d4d57226af850ea247491e1f
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