Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
52d522f5
Commit
52d522f5
authored
Sep 26, 2006
by
Andi Kleen
Committed by
Andi Kleen
Sep 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix sparse warnings in compat aout code
Signed-off-by:
Andi Kleen
<
ak@suse.de
>
parent
ddb15ec1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
arch/x86_64/ia32/ia32_aout.c
arch/x86_64/ia32/ia32_aout.c
+5
-3
No files found.
arch/x86_64/ia32/ia32_aout.c
View file @
52d522f5
...
@@ -333,7 +333,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
...
@@ -333,7 +333,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
return
error
;
return
error
;
}
}
error
=
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
*
)
text_addr
,
error
=
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
__user
*
)
text_addr
,
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
if
((
signed
long
)
error
<
0
)
{
if
((
signed
long
)
error
<
0
)
{
send_sig
(
SIGKILL
,
current
,
0
);
send_sig
(
SIGKILL
,
current
,
0
);
...
@@ -366,7 +367,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
...
@@ -366,7 +367,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
down_write
(
&
current
->
mm
->
mmap_sem
);
down_write
(
&
current
->
mm
->
mmap_sem
);
do_brk
(
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
);
do_brk
(
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
);
up_write
(
&
current
->
mm
->
mmap_sem
);
up_write
(
&
current
->
mm
->
mmap_sem
);
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,(
char
*
)
N_TXTADDR
(
ex
),
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
__user
*
)
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
flush_icache_range
((
unsigned
long
)
N_TXTADDR
(
ex
),
flush_icache_range
((
unsigned
long
)
N_TXTADDR
(
ex
),
(
unsigned
long
)
N_TXTADDR
(
ex
)
+
(
unsigned
long
)
N_TXTADDR
(
ex
)
+
...
@@ -477,7 +479,7 @@ static int load_aout_library(struct file *file)
...
@@ -477,7 +479,7 @@ static int load_aout_library(struct file *file)
do_brk
(
start_addr
,
ex
.
a_text
+
ex
.
a_data
+
ex
.
a_bss
);
do_brk
(
start_addr
,
ex
.
a_text
+
ex
.
a_data
+
ex
.
a_bss
);
up_write
(
&
current
->
mm
->
mmap_sem
);
up_write
(
&
current
->
mm
->
mmap_sem
);
file
->
f_op
->
read
(
file
,
(
char
*
)
start_addr
,
file
->
f_op
->
read
(
file
,
(
char
__user
*
)
start_addr
,
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
flush_icache_range
((
unsigned
long
)
start_addr
,
flush_icache_range
((
unsigned
long
)
start_addr
,
(
unsigned
long
)
start_addr
+
ex
.
a_text
+
ex
.
a_data
);
(
unsigned
long
)
start_addr
+
ex
.
a_text
+
ex
.
a_data
);
...
...
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