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
7c501ddc
Commit
7c501ddc
authored
Apr 13, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Apr 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] zero 'hw_regs_t hw' allocated from stack in ide.c and ide-cs.c
parent
1b803805
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
drivers/ide/ide.c
drivers/ide/ide.c
+1
-0
drivers/ide/legacy/ide-cs.c
drivers/ide/legacy/ide-cs.c
+1
-0
No files found.
drivers/ide/ide.c
View file @
7c501ddc
...
...
@@ -1574,6 +1574,7 @@ int generic_ide_ioctl(struct block_device *bdev, unsigned int cmd,
if
(
!
capable
(
CAP_SYS_RAWIO
))
return
-
EACCES
;
if
(
copy_from_user
(
args
,
(
void
*
)
arg
,
3
*
sizeof
(
int
)))
return
-
EFAULT
;
memset
(
&
hw
,
0
,
sizeof
(
hw
));
ide_init_hwif_ports
(
&
hw
,
(
unsigned
long
)
args
[
0
],
(
unsigned
long
)
args
[
1
],
NULL
);
hw
.
irq
=
args
[
2
];
...
...
drivers/ide/legacy/ide-cs.c
View file @
7c501ddc
...
...
@@ -213,6 +213,7 @@ do { last_fn = (fn); if ((last_ret = (ret)) != 0) goto cs_failed; } while (0)
static
int
idecs_register
(
unsigned
long
io
,
unsigned
long
ctl
,
unsigned
long
irq
)
{
hw_regs_t
hw
;
memset
(
&
hw
,
0
,
sizeof
(
hw
));
ide_init_hwif_ports
(
&
hw
,
io
,
ctl
,
NULL
);
hw
.
irq
=
irq
;
hw
.
chipset
=
ide_pci
;
...
...
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