Skip to content

Commit 7d9dc7f

Browse files
YsuOSaloktiwa
authored andcommitted
nfc: nci: Fix handling of zero-length payload packets in nci_rx_work()
[ 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 <[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]> Signed-off-by: Sasha Levin <[email protected]> FOF: 0724 Signed-off-by: Alok Tiwari <[email protected]>
1 parent bd03219 commit 7d9dc7f

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
@@ -1514,8 +1514,7 @@ static void nci_rx_work(struct work_struct *work)
15141514

15151515
if (!nci_valid_size(skb)) {
15161516
kfree_skb(skb);
1517-
kcov_remote_stop();
1518-
break;
1517+
continue;
15191518
}
15201519

15211520
/* Process frame */

0 commit comments

Comments
 (0)