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
f4ebe421
Commit
f4ebe421
authored
Mar 25, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix lvalue casting in sys_sunos32.c
parent
c0ab4540
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
arch/sparc64/kernel/sys_sunos32.c
arch/sparc64/kernel/sys_sunos32.c
+5
-3
No files found.
arch/sparc64/kernel/sys_sunos32.c
View file @
f4ebe421
...
@@ -302,7 +302,7 @@ static int sunos_filldir(void * __buf, const char * name, int namlen,
...
@@ -302,7 +302,7 @@ static int sunos_filldir(void * __buf, const char * name, int namlen,
put_user
(
reclen
,
&
dirent
->
d_reclen
);
put_user
(
reclen
,
&
dirent
->
d_reclen
);
copy_to_user
(
dirent
->
d_name
,
name
,
namlen
);
copy_to_user
(
dirent
->
d_name
,
name
,
namlen
);
put_user
(
0
,
dirent
->
d_name
+
namlen
);
put_user
(
0
,
dirent
->
d_name
+
namlen
);
((
char
*
)
dirent
)
+=
reclen
;
dirent
=
(
void
*
)
dirent
+
reclen
;
buf
->
curr
=
dirent
;
buf
->
curr
=
dirent
;
buf
->
count
-=
reclen
;
buf
->
count
-=
reclen
;
return
0
;
return
0
;
...
@@ -382,7 +382,7 @@ static int sunos_filldirentry(void * __buf, const char * name, int namlen,
...
@@ -382,7 +382,7 @@ static int sunos_filldirentry(void * __buf, const char * name, int namlen,
put_user
(
reclen
,
&
dirent
->
d_reclen
);
put_user
(
reclen
,
&
dirent
->
d_reclen
);
copy_to_user
(
dirent
->
d_name
,
name
,
namlen
);
copy_to_user
(
dirent
->
d_name
,
name
,
namlen
);
put_user
(
0
,
dirent
->
d_name
+
namlen
);
put_user
(
0
,
dirent
->
d_name
+
namlen
);
((
char
*
)
dirent
)
+=
reclen
;
dirent
=
(
void
*
)
dirent
+
reclen
;
buf
->
curr
=
dirent
;
buf
->
curr
=
dirent
;
buf
->
count
-=
reclen
;
buf
->
count
-=
reclen
;
return
0
;
return
0
;
...
@@ -1276,10 +1276,12 @@ asmlinkage int sunos_sigaction (int sig, u32 act, u32 oact)
...
@@ -1276,10 +1276,12 @@ asmlinkage int sunos_sigaction (int sig, u32 act, u32 oact)
if
(
act
)
{
if
(
act
)
{
compat_old_sigset_t
mask
;
compat_old_sigset_t
mask
;
u32
u_handler
;
if
(
get_user
(
(
long
)
new_ka
.
sa
.
sa
_handler
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_handler
)
||
if
(
get_user
(
u
_handler
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_handler
)
||
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_flags
))
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_flags
))
return
-
EFAULT
;
return
-
EFAULT
;
new_ka
.
sa
.
sa_handler
=
(
void
*
)
(
long
)
u_handler
;
__get_user
(
mask
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_mask
);
__get_user
(
mask
,
&
((
struct
old_sigaction32
*
)
A
(
act
))
->
sa_mask
);
new_ka
.
sa
.
sa_restorer
=
NULL
;
new_ka
.
sa
.
sa_restorer
=
NULL
;
new_ka
.
ka_restorer
=
NULL
;
new_ka
.
ka_restorer
=
NULL
;
...
...
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