From: Martin Townsend Date: Thu, 6 Nov 2014 19:15:13 +0000 (+0000) Subject: 6lowpan: move skb_free from error paths in decompression X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~66^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b2c3eea398c772dd895dc62c18cbdd1ba127b1;p=pandora-kernel.git 6lowpan: move skb_free from error paths in decompression Currently we ensure that the skb is freed on every error path in IPHC decompression which makes it easy to introduce skb leaks. By centralising the skb_free into the receive function it makes future decompression routines easier to maintain. It does come at the expense of ensuring that the skb passed into the decompression routine must not be copied. Signed-off-by: Martin Townsend Acked-by: Jukka Rissanen Acked-by: Alexander Aring Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed