]> git.ipfire.org Git - thirdparty/linux.git/commit
tomoyo: Use scoped init guard
authorMarco Elver <elver@google.com>
Mon, 19 Jan 2026 09:05:55 +0000 (10:05 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 28 Jan 2026 19:45:25 +0000 (20:45 +0100)
commit41539433b32d71aea9f7ada84dc6a8bd014ca50d
treee532db524e172ccef9bd532ada77eb0d7e907a91
parentf39261f55b3ee58d85e96142763c25b945399b2f
tomoyo: Use scoped init guard

Convert lock initialization to scoped guarded initialization where
lock-guarded members are initialized in the same scope.

This ensures the context analysis treats the context as active during member
initialization. This is required to avoid errors once implicit context
assertion is removed.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260119094029.1344361-6-elver@google.com
security/tomoyo/common.c