]> git.ipfire.org Git - thirdparty/linux.git/commit
net: shaper: drop unnecessary kfree_rcu in pre_insert
authorJakub Kicinski <kuba@kernel.org>
Tue, 9 Jun 2026 18:32:22 +0000 (11:32 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jun 2026 10:55:23 +0000 (12:55 +0200)
commit3500dfa6ff0e658f10fa7c87d8be557cefa3d1bb
tree413ea774327db2b06b8bf7222ce747a379ed6623
parentf26cddcf2a8a997c6c1e73101160197c3dead435
net: shaper: drop unnecessary kfree_rcu in pre_insert

If we fail to insert a node into the XArray in net_shaper_pre_insert()
we can free it directly - it was never visible to the RCU readers.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20260609183224.1108521-3-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/shaper/shaper.c