Skip to content

Commit fe6fa88

Browse files
jognesspmladek
authored andcommitted
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>
1 parent 5102981 commit fe6fa88

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/proc/consoles.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static int show_console_dev(struct seq_file *m, void *v)
6868
}
6969

7070
static void *c_start(struct seq_file *m, loff_t *pos)
71+
__acquires(&console_mutex)
7172
{
7273
struct console *con;
7374
loff_t off = 0;
@@ -94,6 +95,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos)
9495
}
9596

9697
static void c_stop(struct seq_file *m, void *v)
98+
__releases(&console_mutex)
9799
{
98100
console_list_unlock();
99101
}

0 commit comments

Comments
 (0)