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
nexedi
linux
Commits
7f7ac851
Commit
7f7ac851
authored
Jan 21, 2003
by
Stephen Rothwell
Committed by
David Mosberger
Jan 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: [COMPAT] {get,put}_compat_timspec 5/8
parent
9f799613
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
arch/ia64/ia32/ia32_signal.c
arch/ia64/ia32/ia32_signal.c
+4
-7
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+1
-1
No files found.
arch/ia64/ia32/ia32_signal.c
View file @
7f7ac851
...
@@ -607,14 +607,11 @@ sys32_rt_sigtimedwait (sigset32_t *uthese, siginfo_t32 *uinfo,
...
@@ -607,14 +607,11 @@ sys32_rt_sigtimedwait (sigset32_t *uthese, siginfo_t32 *uinfo,
if
(
copy_from_user
(
&
s
.
sig
,
uthese
,
sizeof
(
sigset32_t
)))
if
(
copy_from_user
(
&
s
.
sig
,
uthese
,
sizeof
(
sigset32_t
)))
return
-
EFAULT
;
return
-
EFAULT
;
if
(
uts
)
{
if
(
uts
&&
get_compat_timespec
(
&
t
,
uts
))
ret
=
get_user
(
t
.
tv_sec
,
&
uts
->
tv_sec
);
return
-
EFAULT
;
ret
|=
get_user
(
t
.
tv_nsec
,
&
uts
->
tv_nsec
);
if
(
ret
)
return
-
EFAULT
;
}
set_fs
(
KERNEL_DS
);
set_fs
(
KERNEL_DS
);
ret
=
sys_rt_sigtimedwait
(
&
s
,
&
info
,
&
t
,
sigsetsize
);
ret
=
sys_rt_sigtimedwait
(
&
s
,
uinfo
?
&
info
:
NULL
,
uts
?
&
t
:
NULL
,
sigsetsize
);
set_fs
(
old_fs
);
set_fs
(
old_fs
);
if
(
ret
>=
0
&&
uinfo
)
{
if
(
ret
>=
0
&&
uinfo
)
{
if
(
copy_siginfo_to_user32
(
uinfo
,
&
info
))
if
(
copy_siginfo_to_user32
(
uinfo
,
&
info
))
...
...
arch/ia64/ia32/sys_ia32.c
View file @
7f7ac851
...
@@ -3540,7 +3540,7 @@ sys32_sched_rr_get_interval (pid_t pid, struct compat_timespec *interval)
...
@@ -3540,7 +3540,7 @@ sys32_sched_rr_get_interval (pid_t pid, struct compat_timespec *interval)
set_fs
(
KERNEL_DS
);
set_fs
(
KERNEL_DS
);
ret
=
sys_sched_rr_get_interval
(
pid
,
&
t
);
ret
=
sys_sched_rr_get_interval
(
pid
,
&
t
);
set_fs
(
old_fs
);
set_fs
(
old_fs
);
if
(
put_
user
(
t
.
tv_sec
,
&
interval
->
tv_sec
)
||
put_user
(
t
.
tv_nsec
,
&
interval
->
tv_nsec
))
if
(
put_
compat_timespec
(
&
t
,
interval
))
return
-
EFAULT
;
return
-
EFAULT
;
return
ret
;
return
ret
;
}
}
...
...
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