From: Arend van Spriel Date: Wed, 3 Apr 2013 10:40:28 +0000 (+0200) Subject: brcmfmac: use skb_cow() in brcmf_sdbrcm_txpkt() to assure alignment X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~170^2^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeecc574a428a116936cadcea06b47cffad16ba1;p=pandora-kernel.git brcmfmac: use skb_cow() in brcmf_sdbrcm_txpkt() to assure alignment In brcmf_sdbrcm_txpkt() a new packet is allocated and used to transmit to firmware freeing up the original packet. However, that packet is still referenced in firmware-signalling so this would result in a double free. Using skb_cow() avoids this as the packet reference is unchanged. Reviewed-by: Hante Meuleman Reviewed-by: Piotr Haber Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed