Skip to content

Commit 6671e35

Browse files
YsuOSPaolo Abeni
authored andcommitted
nfc: nci: Fix handling of zero-length payload packets in nci_rx_work()
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>
1 parent 26afda7 commit 6671e35

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)