diff options
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; |