Bluetooth: 6lowpan: fix skb_unshare behaviour
authorAlexander Aring <alex.aring@gmail.com>
Wed, 8 Oct 2014 08:24:53 +0000 (10:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 8 Nov 2014 19:29:35 +0000 (20:29 +0100)
commitb0c42cd7b210efc74aa4bfc3e39a2814dfaa9b89
treed87c983453f86c5a95472417e68faf269aec6a0e
parentcb77c3ec075a50e9f956f62dc2e4c0394df1d578
Bluetooth: 6lowpan: fix skb_unshare behaviour

This patch reverts commit:

a7807d73 ("Bluetooth: 6lowpan: Avoid memory leak if memory allocation
fails")

which was wrong suggested by Alexander Aring. The function skb_unshare
run also kfree_skb on failure.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org # 3.18.x
net/bluetooth/6lowpan.c