tty: add missing rcu_read_lock for task_pgrp
authorPatrick Donnelly <batrick@batbytes.com>
Sun, 12 Jul 2015 22:51:52 +0000 (18:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 00:56:38 +0000 (17:56 -0700)
commit6719693ca2efb0f04654d05768ee299e87e1694b
tree08cc78496b9c1251dc21d2f52a8f995b955f8b81
parentda891641b6c92e260966dfce3dd93111d08656c8
tty: add missing rcu_read_lock for task_pgrp

task_pgrp requires an rcu or tasklist lock to be obtained if the returned pid
is to be dereferenced, which kill_pgrp does. Obtain an RCU lock for the
duration of use.

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
drivers/tty/tty_io.c