Re: [PATCH] net: qualcomm: qca_uart: report the consumed byte on RX skb allocation failure
From: patchwork-bot+netdevbpf
Date: Fri Apr 03 2026 - 18:40:31 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 2 Apr 2026 15:12:07 +0800 you wrote:
> qca_tty_receive() consumes each input byte before checking whether a
> completed frame needs a fresh receive skb. When the current byte completes
> a frame, the driver delivers that frame and then allocates a new skb for
> the next one.
>
> If that allocation fails, the current code returns i even though data[i]
> has already been consumed and may already have completed the delivered
> frame. Since serdev interprets the return value as the number of accepted
> bytes, this under-reports progress by one byte and can replay the final
> byte of the completed frame into a fresh parser state on the next call.
>
> [...]
Here is the summary with links:
- net: qualcomm: qca_uart: report the consumed byte on RX skb allocation failure
https://git.kernel.org/netdev/net/c/b76254c55dc8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html