summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorYinhao Hu <dddddd@hust.edu.cn>2026-06-26 00:34:34 -0700
committerDavid Heidelberg <david@ixit.cz>2026-08-17 19:27:49 +0200
commit4b992fb2ce3e7bb394b3d57e2bf22928e70cfb83 (patch)
tree1e7be75a1de417d53717f3769dcc1887143c17ad /scripts/objdiff
parent04ab4a1f5c3c325fcbf5c90cb22c67e5ca107bb5 (diff)
downloadlinux-next-4b992fb2ce3e7bb394b3d57e2bf22928e70cfb83.tar.gz
linux-next-4b992fb2ce3e7bb394b3d57e2bf22928e70cfb83.zip
nfc: pn533: hold a reference to the request skb during send_frame
__pn533_send_async() publishes the command and then calls dev->phy_ops->send_frame(). Once dev->cmd is set, an incoming frame can be matched to this command: the I2C threaded IRQ runs pn533_recv_frame(), which queues cmd_complete_work, and pn533_send_async_complete() frees cmd->req with consume_skb(). On the I2C transport, pn533_i2c_send_frame() still dereferences the same skb after i2c_master_send() returns, so a completion that races the send can free the skb while the transport is still using it. The request skb is owned by the command object and may be freed by command completion at any time after dev->cmd is published, so the transport send path must not assume it stays alive. Hold a temporary reference to the request skb across the send_frame() call so the transport always sees a live skb even if completion races the send. Add a pn533_send_cmd_frame() helper and use it from all three send paths. Fixes: 9815c7cf22da ("NFC: pn533: Separate physical layer from the core implementation") Signed-off-by: Yinhao Hu <dddddd@hust.edu.cn> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260626073434.3977525-1-dddddd@hust.edu.cn Signed-off-by: David Heidelberg <david@ixit.cz>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions