diff options
author | 2025-01-13 17:11:10 +0100 | |
---|---|---|
committer | 2025-01-14 11:57:45 +0100 | |
commit | 16a6f4d3b558bd55b52892f2becad8f33cb62ed2 (patch) | |
tree | 447f0e347c1ee14043774983204f5559dc29fb97 /net/lapb/lapb_timer.c | |
parent | landlock: Use scoped guards for ruleset (diff) | |
download | wireguard-linux-16a6f4d3b558bd55b52892f2becad8f33cb62ed2.tar.xz wireguard-linux-16a6f4d3b558bd55b52892f2becad8f33cb62ed2.zip |
landlock: Use scoped guards for ruleset in landlock_add_rule()
Simplify error handling by replacing goto statements with automatic
calls to landlock_put_ruleset() when going out of scope.
This change depends on the TCP support.
Cc: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Cc: Mikhail Ivanov <ivanov.mikhail1@huawei-partners.com>
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20250113161112.452505-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions