aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2013-02-27 17:02:52 -0800
committerLinus Torvalds <[email protected]>2013-02-27 19:10:09 -0800
commit7ff6764061ecd4a4ef91db7b8b30aacc6a8573c9 (patch)
tree4b98078f0919f60c4ae60190c2cf0b6e495fafaf /tools/perf/scripts/python
parente759a798c639c8bde15c1baa35fb8b451856314b (diff)
usermodehelper: cleanup/fix __orderly_poweroff() && argv_free()
__orderly_poweroff() does argv_free() if call_usermodehelper_fns() returns -ENOMEM. As Lucas pointed out, this can be wrong if -ENOMEM was not triggered by the failing call_usermodehelper_setup(), in this case both __orderly_poweroff() and argv_cleanup() can do kfree(). Kill argv_cleanup() and change __orderly_poweroff() to call argv_free() unconditionally like do_coredump() does. This info->cleanup() is not needed (and wrong) since 6c0c0d4d "fix bug in orderly_poweroff() which did the UMH_NO_WAIT => UMH_WAIT_EXEC change, we can rely on the fact that CLONE_VFORK can't return until do_execve() succeeds/fails. Signed-off-by: Oleg Nesterov <[email protected]> Reported-by: Lucas De Marchi <[email protected]> Cc: David Howells <[email protected]> Cc: James Morris <[email protected]> Cc: hongfeng <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions