diff options
author | Kevin D. Kissell <kevink@mips.com> | 2008-04-16 15:32:22 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-05-12 16:46:51 +0100 |
commit | 1928cc84a0a937ce7042d9235996ab380f36f18a (patch) | |
tree | b51daa0c0b39db4db4c19e934593423e2721ef71 /arch/mips/kernel/kspd.c | |
parent | 9f2546adedda600687bba6ef3e1546a8ecbc16eb (diff) | |
download | linux-1928cc84a0a937ce7042d9235996ab380f36f18a.tar.gz linux-1928cc84a0a937ce7042d9235996ab380f36f18a.tar.bz2 linux-1928cc84a0a937ce7042d9235996ab380f36f18a.zip |
[MIPS] MT: Functional fixes and a little reformatting of APRP support
Signed-off-by: Kevin D. Kissell <kevink@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/kspd.c')
-rw-r--r-- | arch/mips/kernel/kspd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/kspd.c b/arch/mips/kernel/kspd.c index ceb62dce1c9c..b0591ae0ce56 100644 --- a/arch/mips/kernel/kspd.c +++ b/arch/mips/kernel/kspd.c @@ -257,7 +257,7 @@ void sp_work_handle_request(void) vcwd = vpe_getcwd(tclimit); - /* change to the cwd of the process that loaded the SP program */ + /* change to cwd of the process that loaded the SP program */ old_fs = get_fs(); set_fs(KERNEL_DS); sys_chdir(vcwd); @@ -323,6 +323,9 @@ static void sp_cleanup(void) set >>= 1; } } + + /* Put daemon cwd back to root to avoid umount problems */ + sys_chdir("/"); } static int channel_open = 0; |