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.

tty: tty_jobctrl: Add a blank line after declarations

Add a blank line after declarations, reported by checkpatch.pl.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-4-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xiaofei Tan and committed by
Greg Kroah-Hartman
d4e1d903 149ad2c6

+5
+5
drivers/tty/tty_jobctrl.c
··· 75 75 { 76 76 unsigned long flags; 77 77 struct tty_struct *tty; 78 + 78 79 spin_lock_irqsave(&p->sighand->siglock, flags); 79 80 tty = p->signal->tty; 80 81 p->signal->tty = NULL; ··· 174 173 void session_clear_tty(struct pid *session) 175 174 { 176 175 struct task_struct *p; 176 + 177 177 do_each_pid_task(session, PIDTYPE_SID, p) { 178 178 proc_clear_tty(p); 179 179 } while_each_pid_task(session, PIDTYPE_SID, p); ··· 271 269 tty_vhangup_session(tty); 272 270 } else { 273 271 struct pid *tty_pgrp = tty_get_pgrp(tty); 272 + 274 273 if (tty_pgrp) { 275 274 kill_pgrp(tty_pgrp, SIGHUP, on_exit); 276 275 if (!on_exit) ··· 283 280 284 281 } else if (on_exit) { 285 282 struct pid *old_pgrp; 283 + 286 284 spin_lock_irq(&current->sighand->siglock); 287 285 old_pgrp = current->signal->tty_old_pgrp; 288 286 current->signal->tty_old_pgrp = NULL; ··· 332 328 between a new association and proc_clear_tty but possible we need 333 329 to protect against this anyway */ 334 330 struct task_struct *tsk = current; 331 + 335 332 disassociate_ctty(0); 336 333 proc_clear_tty(tsk); 337 334 }