]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
liveupdate: avoid mixing cleanup guards with goto in luo_session_retrieve_fd
authorPasha Tatashin <pasha.tatashin@soleen.com>
Wed, 3 Jun 2026 15:43:51 +0000 (15:43 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Wed, 3 Jun 2026 18:15:45 +0000 (21:15 +0300)
commit6af06e11bd48bdefaf9381f6ff0bd65b1e5d98ab
treedfec87bde102c8c549ab0de86750135959f4b2bb
parent81fbb909ec07868415f6b2269922c8d1cc6a215a
liveupdate: avoid mixing cleanup guards with goto in luo_session_retrieve_fd

Refactoring luo_session_retrieve_fd() to avoid mixing automated
cleanup-style guards with goto-based resource release, which is not
recommended under the Linux kernel coding style.

Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Link: https://patch.msgid.link/20260603154402.468928-3-pasha.tatashin@soleen.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
kernel/liveupdate/luo_session.c