PM / Hibernate: Disable usermode helpers right before freezing tasks
commit9bd3f435bb77d55c195b254d5c7f1f21e6a0669a
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Mar 2012 21:30:14 +0000 (28 23:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 16:13:54 +0000 (13 09:13 -0700)
tree4cb3f2ce71efc848add0ecbdb7e1ce37c66ca839
parent327acb4361452fc79e4f2f38f366f9baa55e3676
PM / Hibernate: Disable usermode helpers right before freezing tasks

commit 7b5179ac14dbad945647ac9e76bbbf14ed9e0dbe upstream.

There is no reason to call usermodehelper_disable() before creating
memory bitmaps in hibernate() and software_resume(), so call it right
before freeze_processes(), in accordance with the other suspend and
hibernation code.  Consequently, call usermodehelper_enable() right
after the thawing of tasks rather than after freeing the memory
bitmaps.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/hibernate.c