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
371a77da
Commit
371a77da
authored
Sep 19, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI Hotplug Core: Add allocation sanity checks. Patch from Silvio Cesare
parent
77916a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/hotplug/pci_hotplug_core.c
drivers/hotplug/pci_hotplug_core.c
+3
-3
No files found.
drivers/hotplug/pci_hotplug_core.c
View file @
371a77da
...
...
@@ -621,7 +621,7 @@ static ssize_t power_write_file (struct file *file, const char *ubuff, size_t co
if
(
*
offset
<
0
)
return
-
EINVAL
;
if
(
count
<=
0
)
if
(
count
==
0
||
count
>
16384
)
return
0
;
if
(
*
offset
!=
0
)
return
0
;
...
...
@@ -732,7 +732,7 @@ static ssize_t attention_write_file (struct file *file, const char *ubuff, size_
if
(
*
offset
<
0
)
return
-
EINVAL
;
if
(
count
<=
0
)
if
(
count
==
0
||
count
>
16384
)
return
0
;
if
(
*
offset
!=
0
)
return
0
;
...
...
@@ -970,7 +970,7 @@ static ssize_t test_write_file (struct file *file, const char *ubuff, size_t cou
if
(
*
offset
<
0
)
return
-
EINVAL
;
if
(
count
<=
0
)
if
(
count
==
0
||
count
>
16384
)
return
0
;
if
(
*
offset
!=
0
)
return
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