From: Jukka Rissanen Date: Wed, 1 Oct 2014 08:30:57 +0000 (+0300) Subject: Bluetooth: 6lowpan: Avoid memory leak if memory allocation fails X-Git-Tag: fixes-against-v3.18-rc2~144^2~39^2~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7807d73a0fa9b33dbdfd5f1cb97970ccc91d77e;p=pandora-kernel.git Bluetooth: 6lowpan: Avoid memory leak if memory allocation fails If skb_unshare() returns NULL, then we leak the original skb. Solution is to use temp variable to hold the new skb. Signed-off-by: Jukka Rissanen Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed