From: Martin Townsend Date: Mon, 13 Oct 2014 10:00:56 +0000 (+0100) Subject: 6lowpan: Use skb_cow in IPHC decompression. X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~234^2~3^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e3ff7072789ad4585870cbdde1be10c45f1cc4;p=pandora-kernel.git 6lowpan: Use skb_cow in IPHC decompression. Currently there are potentially 2 skb_copy_expand calls in IPHC decompression. This patch replaces this with one call to skb_cow which will check to see if there is enough headroom first to ensure it's only done if necessary and will handle alignment issues for cache. As skb_cow uses pskb_expand_head we ensure the skb isn't shared from bluetooth and ieee802.15.4 code that use the IPHC decompression. Signed-off-by: Martin Townsend Acked-by: Alexander Aring Acked-by: Jukka Rissanen Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed