• Thierry Escande's avatar
    NFC: digital: Fix handling of saved PDU sk_buff pointers · 1d984c2e
    Thierry Escande authored
    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: 's avatarThierry Escande <thierry.escande@collabora.com>
    Signed-off-by: 's avatarSamuel Ortiz <sameo@linux.intel.com>
    1d984c2e
Name
Last commit
Last update
..
hci Loading commit data...
nci Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
af_nfc.c Loading commit data...
core.c Loading commit data...
digital.h Loading commit data...
digital_core.c Loading commit data...
digital_dep.c Loading commit data...
digital_technology.c Loading commit data...
llcp.h Loading commit data...
llcp_commands.c Loading commit data...
llcp_core.c Loading commit data...
llcp_sock.c Loading commit data...
netlink.c Loading commit data...
nfc.h Loading commit data...
rawsock.c Loading commit data...