commit | 6719693ca2efb0f04654d05768ee299e87e1694b | [log] [tgz] |
---|---|---|
author | Patrick Donnelly <batrick@batbytes.com> | Sun Jul 12 18:51:52 2015 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jul 23 17:56:38 2015 -0700 |
tree | 08cc78496b9c1251dc21d2f52a8f995b955f8b81 | |
parent | da891641b6c92e260966dfce3dd93111d08656c8 [diff] |
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>