diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-12 12:03:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-12 12:03:42 -0400 |
commit | 8d97b84935b28ed8944d1be31859a3df7ebe93ae (patch) | |
tree | ed0f23dde45812aec86a9ff0c14df3477f9d136c /arch/mips/kernel/kspd.c | |
parent | 9f1a0735395ba2b2efa5012b5bf7f915299f1a79 (diff) | |
parent | cb0e8b0fba53e1aa6c4786bc465cfc641e8a77e7 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (28 commits)
[MIPS] Pb1000: bury the remnants of the PCI code
[MIPS] Fix build failure in mips oprofile code
[MIPS] fix warning message on SMP kernels
[MIPS] markeins: build fix
[MIPS] ELF handling - use SELFMAG instead of numeric constant
[MIPS] Get rid of __ilog2
[MIPS] Fix __fls for non-MIPS32/MIPS64 cpus
[MIPS] XXS1500 code style cleanup
[MIPS] MTX-1 code style cleanup
[MIPS] Pb1200/DBAu1200 code style cleanup
[MIPS] Pb1550 code style cleanup
[MIPS] Pb1500 code style cleanup
[MIPS] Pb1100 code style cleanup
[MIPS] Pb1000 code style cleanup
[MIPS] DBAu1xx0 code style cleanup
[MIPS] Alchemy PCI code style cleanup
[MIPS] Alchemy common code style cleanup
[MIPS] Alchemy common headers style cleanup
[MIPS] Add empty argument parenthesis to GCC_IMM_ASM
[MIPS] msp_hwbutton.c: minor irq handler cleanups
...
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) | |||
257 | 257 | ||
258 | vcwd = vpe_getcwd(tclimit); | 258 | vcwd = vpe_getcwd(tclimit); |
259 | 259 | ||
260 | /* change to the cwd of the process that loaded the SP program */ | 260 | /* change to cwd of the process that loaded the SP program */ |
261 | old_fs = get_fs(); | 261 | old_fs = get_fs(); |
262 | set_fs(KERNEL_DS); | 262 | set_fs(KERNEL_DS); |
263 | sys_chdir(vcwd); | 263 | sys_chdir(vcwd); |
@@ -323,6 +323,9 @@ static void sp_cleanup(void) | |||
323 | set >>= 1; | 323 | set >>= 1; |
324 | } | 324 | } |
325 | } | 325 | } |
326 | |||
327 | /* Put daemon cwd back to root to avoid umount problems */ | ||
328 | sys_chdir("/"); | ||
326 | } | 329 | } |
327 | 330 | ||
328 | static int channel_open = 0; | 331 | static int channel_open = 0; |