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
51e4faad
Commit
51e4faad
authored
Dec 10, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux.bkbits.net/linux-2.5
into bkbits.net:/repos/c/cifs/linux-2.5cifs
parents
b1c5bf7c
f9286bcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
16 deletions
+25
-16
drivers/char/vt.c
drivers/char/vt.c
+5
-0
fs/compat.c
fs/compat.c
+10
-8
fs/exec.c
fs/exec.c
+10
-8
No files found.
drivers/char/vt.c
View file @
51e4faad
...
...
@@ -768,6 +768,8 @@ inline int resize_screen(int currcons, int width, int height)
* [this is to be used together with some user program
* like resize that changes the hardware videomode]
*/
#define VC_RESIZE_MAXCOL (32767)
#define VC_RESIZE_MAXROW (32767)
int
vc_resize
(
int
currcons
,
unsigned
int
cols
,
unsigned
int
lines
)
{
unsigned
long
old_origin
,
new_origin
,
new_scr_end
,
rlth
,
rrem
,
err
=
0
;
...
...
@@ -780,6 +782,9 @@ int vc_resize(int currcons, unsigned int cols, unsigned int lines)
if
(
!
vc_cons_allocated
(
currcons
))
return
-
ENXIO
;
if
(
cols
>
VC_RESIZE_MAXCOL
||
lines
>
VC_RESIZE_MAXROW
)
return
-
EINVAL
;
new_cols
=
(
cols
?
cols
:
video_num_columns
);
new_rows
=
(
lines
?
lines
:
video_num_lines
);
new_row_size
=
new_cols
<<
1
;
...
...
fs/compat.c
View file @
51e4faad
...
...
@@ -1387,25 +1387,25 @@ int compat_do_execve(char * filename,
int
retval
;
int
i
;
file
=
open_exec
(
filename
);
retval
=
PTR_ERR
(
file
);
if
(
IS_ERR
(
file
))
return
retval
;
sched_exec
();
retval
=
-
ENOMEM
;
bprm
=
kmalloc
(
sizeof
(
*
bprm
),
GFP_KERNEL
);
if
(
!
bprm
)
goto
out_ret
;
memset
(
bprm
,
0
,
sizeof
(
*
bprm
));
file
=
open_exec
(
filename
);
retval
=
PTR_ERR
(
file
);
if
(
IS_ERR
(
file
))
goto
out_kfree
;
sched_exec
();
bprm
->
p
=
PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
void
*
);
bprm
->
file
=
file
;
bprm
->
filename
=
filename
;
bprm
->
interp
=
filename
;
bprm
->
mm
=
mm_alloc
();
retval
=
-
ENOMEM
;
if
(
!
bprm
->
mm
)
goto
out_file
;
...
...
@@ -1472,6 +1472,8 @@ int compat_do_execve(char * filename,
allow_write_access
(
bprm
->
file
);
fput
(
bprm
->
file
);
}
out_kfree:
kfree
(
bprm
);
out_ret:
...
...
fs/exec.c
View file @
51e4faad
...
...
@@ -1094,26 +1094,26 @@ int do_execve(char * filename,
int
retval
;
int
i
;
file
=
open_exec
(
filename
);
retval
=
PTR_ERR
(
file
);
if
(
IS_ERR
(
file
))
return
retval
;
sched_exec
();
retval
=
-
ENOMEM
;
bprm
=
kmalloc
(
sizeof
(
*
bprm
),
GFP_KERNEL
);
if
(
!
bprm
)
goto
out_ret
;
memset
(
bprm
,
0
,
sizeof
(
*
bprm
));
file
=
open_exec
(
filename
);
retval
=
PTR_ERR
(
file
);
if
(
IS_ERR
(
file
))
goto
out_kfree
;
sched_exec
();
bprm
->
p
=
PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
void
*
);
bprm
->
file
=
file
;
bprm
->
filename
=
filename
;
bprm
->
interp
=
filename
;
bprm
->
mm
=
mm_alloc
();
retval
=
-
ENOMEM
;
if
(
!
bprm
->
mm
)
goto
out_file
;
...
...
@@ -1180,6 +1180,8 @@ int do_execve(char * filename,
allow_write_access
(
bprm
->
file
);
fput
(
bprm
->
file
);
}
out_kfree:
kfree
(
bprm
);
out_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