]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: always set reason in sk_filter_trim_cap()
authorEric Dumazet <edumazet@google.com>
Thu, 9 Apr 2026 14:56:21 +0000 (14:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 21:30:25 +0000 (14:30 -0700)
commit734ea7e324ad1cee2a21f909f756b5e2d903a224
tree4f2aa6314472a58057bac1a10c69461ef0036125
parent900f27fb797c7eaf0b84b7a6516613e19746bc4e
net: always set reason in sk_filter_trim_cap()

sk_filter_trim_cap() will soon return the drop reason by value.

Make sure *reason is cleared when no error is returned,
to ease this conversion.

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-7 (-7)
Function                                     old     new   delta
sk_filter_trim_cap                           889     882      -7
Total: Before=29722668, After=29722661, chg -0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260409145625.2306224-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/filter.c