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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 26afda7 commit 6671e35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)