Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6ffa96a3
Commit
6ffa96a3
authored
Apr 07, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Fix sys_ipc to return ENOSYS instead of EINVAL as appropriate.
parent
684b80f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
arch/sparc/kernel/sys_sparc.c
arch/sparc/kernel/sys_sparc.c
+4
-4
arch/sparc64/kernel/sys_sparc.c
arch/sparc64/kernel/sys_sparc.c
+4
-4
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+4
-4
No files found.
arch/sparc/kernel/sys_sparc.c
View file @
6ffa96a3
...
@@ -140,7 +140,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
...
@@ -140,7 +140,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
goto
out
;
goto
out
;
}
}
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
if
(
call
<=
MSGCTL
)
if
(
call
<=
MSGCTL
)
...
@@ -173,7 +173,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
...
@@ -173,7 +173,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
err
=
sys_msgctl
(
first
,
second
,
(
struct
msqid_ds
*
)
ptr
);
err
=
sys_msgctl
(
first
,
second
,
(
struct
msqid_ds
*
)
ptr
);
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
if
(
call
<=
SHMCTL
)
if
(
call
<=
SHMCTL
)
...
@@ -205,11 +205,11 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
...
@@ -205,11 +205,11 @@ asmlinkage int sys_ipc (uint call, int first, int second, int third, void *ptr,
err
=
sys_shmctl
(
first
,
second
,
(
struct
shmid_ds
*
)
ptr
);
err
=
sys_shmctl
(
first
,
second
,
(
struct
shmid_ds
*
)
ptr
);
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
else
else
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
out:
out:
return
err
;
return
err
;
}
}
...
...
arch/sparc64/kernel/sys_sparc.c
View file @
6ffa96a3
...
@@ -199,7 +199,7 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
...
@@ -199,7 +199,7 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
goto
out
;
goto
out
;
}
}
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
if
(
call
<=
MSGCTL
)
if
(
call
<=
MSGCTL
)
...
@@ -218,7 +218,7 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
...
@@ -218,7 +218,7 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
err
=
sys_msgctl
(
first
,
second
|
IPC_64
,
(
struct
msqid_ds
*
)
ptr
);
err
=
sys_msgctl
(
first
,
second
|
IPC_64
,
(
struct
msqid_ds
*
)
ptr
);
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
if
(
call
<=
SHMCTL
)
if
(
call
<=
SHMCTL
)
...
@@ -236,11 +236,11 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
...
@@ -236,11 +236,11 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
err
=
sys_shmctl
(
first
,
second
|
IPC_64
,
(
struct
shmid_ds
*
)
ptr
);
err
=
sys_shmctl
(
first
,
second
|
IPC_64
,
(
struct
shmid_ds
*
)
ptr
);
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
else
else
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
out:
out:
return
err
;
return
err
;
}
}
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
6ffa96a3
...
@@ -756,7 +756,7 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
...
@@ -756,7 +756,7 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
err
=
do_sys32_semctl
(
first
,
second
,
third
,
(
void
*
)
AA
(
ptr
));
err
=
do_sys32_semctl
(
first
,
second
,
third
,
(
void
*
)
AA
(
ptr
));
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
};
};
if
(
call
<=
MSGCTL
)
if
(
call
<=
MSGCTL
)
...
@@ -775,7 +775,7 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
...
@@ -775,7 +775,7 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
err
=
do_sys32_msgctl
(
first
,
second
,
(
void
*
)
AA
(
ptr
));
err
=
do_sys32_msgctl
(
first
,
second
,
(
void
*
)
AA
(
ptr
));
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
if
(
call
<=
SHMCTL
)
if
(
call
<=
SHMCTL
)
...
@@ -794,11 +794,11 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
...
@@ -794,11 +794,11 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
err
=
do_sys32_shmctl
(
first
,
second
,
(
void
*
)
AA
(
ptr
));
err
=
do_sys32_shmctl
(
first
,
second
,
(
void
*
)
AA
(
ptr
));
goto
out
;
goto
out
;
default:
default:
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
goto
out
;
goto
out
;
}
}
err
=
-
E
INVAL
;
err
=
-
E
NOSYS
;
out:
out:
return
err
;
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment