NFC: Queue a copy of the transmitted LLCP skb
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 1 Nov 2012 22:36:07 +0000 (23:36 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 22:57:01 +0000 (23:57 +0100)
commitbe02b6b624005d47c388f799ce23714136430217
tree2e440fa1279d91f0791e3ee3248c2120bc4855aa
parentdd2bf43ffcf0d1bba94d20abc6cc44ed294db66b
NFC: Queue a copy of the transmitted LLCP skb

Drivers are allowed to modify the sent skb and thus we need to make a copy
of it before passing it to the driver. Without this fix, LLCP Tx skbs were
not queued properly as the ptype check was failing due to e.g. the pn533
driver skb_pushing the Tx skb.

Reported-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp/llcp.c