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
115bbb11
Commit
115bbb11
authored
Aug 13, 2003
by
Dave Jones
Committed by
Linus Torvalds
Aug 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Missing copy_from_user check in comx driver
parent
bd3fda33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/net/wan/comx-hw-locomx.c
drivers/net/wan/comx-hw-locomx.c
+4
-1
No files found.
drivers/net/wan/comx-hw-locomx.c
View file @
115bbb11
...
@@ -339,7 +339,10 @@ static int locomx_write_proc(struct file *file, const char *buffer,
...
@@ -339,7 +339,10 @@ static int locomx_write_proc(struct file *file, const char *buffer,
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
copy_from_user
(
page
,
buffer
,
count
=
min_t
(
unsigned
long
,
count
,
PAGE_SIZE
));
if
(
copy_from_user
(
page
,
buffer
,
count
=
min_t
(
unsigned
long
,
count
,
PAGE_SIZE
)))
{
free_page
((
unsigned
long
)
page
);
return
-
EBADF
;
}
if
(
*
(
page
+
count
-
1
)
==
'\n'
)
{
if
(
*
(
page
+
count
-
1
)
==
'\n'
)
{
*
(
page
+
count
-
1
)
=
0
;
*
(
page
+
count
-
1
)
=
0
;
}
}
...
...
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