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.

proc: consoles: Add notation to c_start/c_stop

fs/proc/consoles.c:78:13: warning: context imbalance in 'c_start'
- wrong count at exit
fs/proc/consoles.c:104:13: warning: context imbalance in 'c_stop'
- unexpected unlock

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240904120536.115780-13-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

John Ogness and committed by
Petr Mladek
fe6fa88d 5102981d

+2
+2
fs/proc/consoles.c
··· 68 68 } 69 69 70 70 static void *c_start(struct seq_file *m, loff_t *pos) 71 + __acquires(&console_mutex) 71 72 { 72 73 struct console *con; 73 74 loff_t off = 0; ··· 95 94 } 96 95 97 96 static void c_stop(struct seq_file *m, void *v) 97 + __releases(&console_mutex) 98 98 { 99 99 console_list_unlock(); 100 100 }