forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uml: make mconsole_stack namespace-aware
Also fixed the include syntax while I was there. Signed-off-by: Jeff Dike <[email protected]> Cc: Pavel Emelyanov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
1 changed file
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
/* | ||
* Copyright (C) 2001 Lennert Buytenhek ([email protected]) | ||
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
* Copyright (C) 2001 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#include "linux/console.h" | ||
#include "linux/ctype.h" | ||
#include "linux/interrupt.h" | ||
#include "linux/list.h" | ||
#include "linux/mm.h" | ||
#include "linux/module.h" | ||
#include "linux/notifier.h" | ||
#include "linux/reboot.h" | ||
#include "linux/proc_fs.h" | ||
#include "linux/slab.h" | ||
#include "linux/syscalls.h" | ||
#include "linux/utsname.h" | ||
#include "linux/workqueue.h" | ||
#include "linux/mutex.h" | ||
#include "asm/uaccess.h" | ||
#include <linux/console.h> | ||
#include <linux/ctype.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/list.h> | ||
#include <linux/mm.h> | ||
#include <linux/module.h> | ||
#include <linux/notifier.h> | ||
#include <linux/reboot.h> | ||
#include <linux/proc_fs.h> | ||
#include <linux/slab.h> | ||
#include <linux/syscalls.h> | ||
#include <linux/utsname.h> | ||
#include <linux/workqueue.h> | ||
#include <linux/mutex.h> | ||
#include <asm/uaccess.h> | ||
|
||
#include "init.h" | ||
#include "irq_kern.h" | ||
#include "irq_user.h" | ||
|
@@ -765,7 +766,7 @@ void mconsole_stack(struct mc_request *req) | |
return; | ||
} | ||
|
||
to = find_task_by_pid(pid_requested); | ||
to = find_task_by_pid_ns(pid_requested, &init_pid_ns); | ||
if ((to == NULL) || (pid_requested == 0)) { | ||
mconsole_reply(req, "Couldn't find that pid", 1, 0); | ||
return; | ||
|