microblaze: Fix return value for sys_ipc
authorMichal Simek <monstr@monstr.eu>
Thu, 30 Apr 2009 07:35:53 +0000 (09:35 +0200)
committerMichal Simek <monstr@monstr.eu>
Fri, 1 May 2009 14:38:14 +0000 (16:38 +0200)
Signed-off-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/sys_microblaze.c

index ba0568c..31905ff 100644 (file)
@@ -131,7 +131,7 @@ sys_ipc(uint call, int first, int second, int third, void *ptr, long fifth)
                ret = sys_shmctl(first, second, (struct shmid_ds *) ptr);
                break;
        }
-       return -EINVAL;
+       return ret;
 }
 
 asmlinkage int sys_vfork(struct pt_regs *regs)