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
32568578
Commit
32568578
authored
Jun 24, 2003
by
Arun Sharma
Committed by
David Mosberger
Jun 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: IA-32 support patch: msgsnd/msgrcv return value off by 4
parent
56263875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+3
-3
No files found.
arch/ia64/ia32/sys_ia32.c
View file @
32568578
...
...
@@ -1275,7 +1275,7 @@ semctl32 (int first, int second, int third, void *uptr)
static
int
do_sys32_msgsnd
(
int
first
,
int
second
,
int
third
,
void
*
uptr
)
{
struct
msgbuf
*
p
=
kmalloc
(
second
+
sizeof
(
struct
msgbuf
)
+
4
,
GFP_USER
);
struct
msgbuf
*
p
=
kmalloc
(
second
+
sizeof
(
struct
msgbuf
),
GFP_USER
);
struct
msgbuf32
*
up
=
(
struct
msgbuf32
*
)
uptr
;
mm_segment_t
old_fs
;
int
err
;
...
...
@@ -1317,12 +1317,12 @@ do_sys32_msgrcv (int first, int second, int msgtyp, int third, int version, void
msgtyp
=
ipck
.
msgtyp
;
}
err
=
-
ENOMEM
;
p
=
kmalloc
(
second
+
sizeof
(
struct
msgbuf
)
+
4
,
GFP_USER
);
p
=
kmalloc
(
second
+
sizeof
(
struct
msgbuf
),
GFP_USER
);
if
(
!
p
)
goto
out
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
err
=
sys_msgrcv
(
first
,
p
,
second
+
4
,
msgtyp
,
third
);
err
=
sys_msgrcv
(
first
,
p
,
second
,
msgtyp
,
third
);
set_fs
(
old_fs
);
if
(
err
<
0
)
goto
free_then_out
;
...
...
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