Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Marco Elver and committed by
Peter Zijlstra
41539433 f39261f5

+1 -1
+1 -1
security/tomoyo/common.c
··· 2557 2557 2558 2558 if (!head) 2559 2559 return -ENOMEM; 2560 - mutex_init(&head->io_sem); 2560 + guard(mutex_init)(&head->io_sem); 2561 2561 head->type = type; 2562 2562 switch (type) { 2563 2563 case TOMOYO_DOMAINPOLICY: