diff options
author | Thierry Escande <thierry.escande@collabora.com> | 2016-07-08 15:52:39 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2016-07-11 01:55:42 +0200 |
commit | 1d984c2e03c1fb21539a9f50627e312788512013 (patch) | |
tree | fe898192971b22ae77a37720a63737c3a0a9023c /include/net | |
parent | NFC: digital: Abort last command when dep link goes down (diff) | |
download | linux-1d984c2e03c1fb21539a9f50627e312788512013.tar.xz linux-1d984c2e03c1fb21539a9f50627e312788512013.zip |
NFC: digital: Fix handling of saved PDU sk_buff pointers
This patch fixes the way an I-PDU is saved in case it needs to be sent
again. It is now copied using pskb_copy() and not simply referenced
using skb_get() since it could be modified by the driver.
digital_in_send_saved_skb() and digital_tg_send_saved_skb() still get a
reference on the saved skb which is re-sent but release it if the send
operation fails. That way the caller doesn't have to take care about skb
ref in case of error.
RTOX supervisor PDU must not be saved as this can override a previously
saved I-PDU that should be re-sent later on.
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/nfc/digital.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/nfc/digital.h b/include/net/nfc/digital.h index 506e3f6eabef..f9a4e4771861 100644 --- a/include/net/nfc/digital.h +++ b/include/net/nfc/digital.h @@ -237,7 +237,6 @@ struct nfc_digital_dev { int nack_count; struct sk_buff *saved_skb; - unsigned int saved_skb_len; u16 target_fsc; |