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
e86b2943
Commit
e86b2943
authored
Jul 18, 2003
by
Randy Dunlap
Committed by
Steve French
Jul 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] janitor: unchecked copy_from_user in parisc/led.c
author: Daniele Bellucci <bellucda@tiscali.it>
parent
90141a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drivers/parisc/led.c
drivers/parisc/led.c
+7
-1
No files found.
drivers/parisc/led.c
View file @
e86b2943
...
...
@@ -14,6 +14,10 @@
* TODO:
* - speed-up calculations with inlined assembler
* - interface to write to second row of LCD from /proc (if technically possible)
*
* Changes:
* - Audit copy_from_user in led_proc_write.
* Daniele Bellucci <bellucda@tiscali.it>
*/
#include <linux/config.h>
...
...
@@ -160,7 +164,9 @@ static int led_proc_write(struct file *file, const char *buf,
memset
(
lbuf
,
0
,
count
);
copy_from_user
(
lbuf
,
buf
,
count
);
if
(
copy_from_user
(
lbuf
,
buf
,
count
))
return
-
EFAULT
;
cur
=
lbuf
;
/* skip initial spaces */
...
...
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