]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf45c4e58abe48e36983678949f6ab4880c9b7920
tree2e440fa1279d91f0791e3ee3248c2120bc4855aa
parent997514c80cc5fa4df4c1197a697883af1d0f7062
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