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
Kirill Smelkov
linux
Commits
62ec0e90
Commit
62ec0e90
authored
Oct 07, 2002
by
Dave Jones
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] bad userspace dereferencing
parent
e4abbf1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
drivers/char/machzwd.c
drivers/char/machzwd.c
+4
-1
drivers/char/w83877f_wdt.c
drivers/char/w83877f_wdt.c
+6
-1
No files found.
drivers/char/machzwd.c
View file @
62ec0e90
...
@@ -329,7 +329,10 @@ static ssize_t zf_write(struct file *file, const char *buf, size_t count,
...
@@ -329,7 +329,10 @@ static ssize_t zf_write(struct file *file, const char *buf, size_t count,
/* now scan */
/* now scan */
for
(
ofs
=
0
;
ofs
!=
count
;
ofs
++
){
for
(
ofs
=
0
;
ofs
!=
count
;
ofs
++
){
if
(
buf
[
ofs
]
==
'V'
){
char
c
;
if
(
get_user
(
c
,
buf
+
ofs
))
return
-
EFAULT
;
if
(
c
==
'V'
){
zf_expect_close
=
1
;
zf_expect_close
=
1
;
dprintk
(
"zf_expect_close 1
\n
"
);
dprintk
(
"zf_expect_close 1
\n
"
);
}
}
...
...
drivers/char/w83877f_wdt.c
View file @
62ec0e90
...
@@ -192,8 +192,13 @@ static ssize_t fop_write(struct file * file, const char * buf, size_t count, lof
...
@@ -192,8 +192,13 @@ static ssize_t fop_write(struct file * file, const char * buf, size_t count, lof
/* now scan */
/* now scan */
for
(
ofs
=
0
;
ofs
!=
count
;
ofs
++
)
for
(
ofs
=
0
;
ofs
!=
count
;
ofs
++
)
if
(
buf
[
ofs
]
==
'V'
)
{
char
c
;
if
(
get_user
(
c
,
buf
+
ofs
))
return
-
EFAULT
;
if
(
c
==
'V'
)
wdt_expect_close
=
1
;
wdt_expect_close
=
1
;
}
/* someone wrote to us, we should restart timer */
/* someone wrote to us, we should restart timer */
next_heartbeat
=
jiffies
+
WDT_HEARTBEAT
;
next_heartbeat
=
jiffies
+
WDT_HEARTBEAT
;
...
...
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