freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD
authorOleg Nesterov <oleg@redhat.com>
Thu, 25 Oct 2012 20:28:12 +0000 (22:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:20 +0000 (10:10 -0700)
commitcae2c0464b08ffc8b5632cc56049ae7d2b80506f
tree4e817cfa95eb61a48cf6905e0cf0871d5c236a57
parent577269ce50791085217d945d2ce5ae4b6903f3b9
freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD

commit b40a79591ca918e7b91b0d9b6abd5d00f2e88c19 upstream.

flush_old_exec() clears PF_KTHREAD but forgets about PF_NOFREEZE.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/exec.c