* [PATCH net] ppp_synctty: remove redundant skb null check in ppp_sync_txmunge()
@ 2026-09-20 11:49 Qingfang Deng
2026-09-23 23:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Qingfang Deng @ 2026-09-20 11:49 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Jiri Slaby (SUSE),
Markus Elfring, Kees Cook, linux-ppp, netdev, linux-kernel
Cc: kernel test robot, Dan Carpenter
The skb is already dereferenced before the check. In addition, a TX skb
passed from the generic layer can never be null.
Remove the redundant null check.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202609132245.txZXoUxc-lkp@intel.com/
Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
---
drivers/net/ppp/ppp_synctty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ppp/ppp_synctty.c b/drivers/net/ppp/ppp_synctty.c
index 9e440e110e9f..b90ae0583c84 100644
--- a/drivers/net/ppp/ppp_synctty.c
+++ b/drivers/net/ppp/ppp_synctty.c
@@ -464,7 +464,7 @@ ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *skb)
ap->last_xmit = jiffies;
- if (skb && ap->flags & SC_LOG_OUTPKT)
+ if (ap->flags & SC_LOG_OUTPKT)
ppp_print_buffer ("send buffer", skb->data, skb->len);
return skb;
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH net] ppp_synctty: remove redundant skb null check in ppp_sync_txmunge()
2026-09-20 11:49 [PATCH net] ppp_synctty: remove redundant skb null check in ppp_sync_txmunge() Qingfang Deng
@ 2026-09-23 23:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-23 23:50 UTC (permalink / raw)
To: Qingfang Deng
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, jirislaby, elfring,
kees, linux-ppp, netdev, linux-kernel, lkp, error27
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 20 Sep 2026 19:49:43 +0800 you wrote:
> The skb is already dereferenced before the check. In addition, a TX skb
> passed from the generic layer can never be null.
>
> Remove the redundant null check.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <error27@gmail.com>
> Closes: https://lore.kernel.org/r/202609132245.txZXoUxc-lkp@intel.com/
> Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
>
> [...]
Here is the summary with links:
- [net] ppp_synctty: remove redundant skb null check in ppp_sync_txmunge()
https://git.kernel.org/netdev/net-next/c/1196e46f6d42
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-23 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 11:49 [PATCH net] ppp_synctty: remove redundant skb null check in ppp_sync_txmunge() Qingfang Deng
2026-09-23 23:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®