Skip to content

Commit da74c5a

Browse files
YsuOSroxanan1996
authored andcommitted
nfc: nci: Fix handling of zero-length payload packets in nci_rx_work()
BugLink: https://bugs.launchpad.net/bugs/2072617 [ Upstream commit 6671e35 ] When nci_rx_work() receives a zero-length payload packet, it should not discard the packet and exit the loop. Instead, it should continue processing subsequent packets. Fixes: d24b035 ("nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet") Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240521153444.535399-1-ryasuoka@redhat.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 3e9abf9 commit da74c5a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

net/nfc/nci/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,8 +1531,7 @@ static void nci_rx_work(struct work_struct *work)
15311531

15321532
if (!nci_valid_size(skb)) {
15331533
kfree_skb(skb);
1534-
kcov_remote_stop();
1535-
break;
1534+
continue;
15361535
}
15371536

15381537
/* Process frame */

0 commit comments

Comments
 (0)