]> git.ipfire.org Git - thirdparty/linux.git/commit
ppp: remove pch->chan NULL checks from tx path
authorQingfang Deng <dqfext@gmail.com>
Thu, 12 Mar 2026 09:37:31 +0000 (17:37 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Mar 2026 09:58:04 +0000 (10:58 +0100)
commitfebe8012458fd9057d3fb70f6b37ef67a07ff8a1
tree7121a727aeabc824a5102c184eecbb6c881598bc
parent6a196e83a1a7e50be93482d1cd4305641f1a9fb1
ppp: remove pch->chan NULL checks from tx path

Now that ppp_disconnect_channel() is called before pch->chan is set to
NULL, a channel from ppp->channels list on the transmit path is
guaranteed to have non-NULL pch->chan.

Remove the pch->chan NULL checks from ppp_push(), ppp_mp_explode(), and
ppp_fill_forward_path(), where a channel is obtained from the list.
Remove the corresponding WRITE/READ_ONCE annotations as they no longer
race.

Signed-off-by: Qingfang Deng <dqfext@gmail.com>
Link: https://patch.msgid.link/20260312093732.277254-2-dqfext@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ppp/ppp_generic.c