projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0eee4
)
ide-acpi: add missing drive->acpidata zeroing
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Thu, 17 Apr 2008 22:46:21 +0000
(
00:46
+0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Thu, 17 Apr 2008 22:46:21 +0000
(
00:46
+0200)
There should be no functionality changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-acpi.c
b/drivers/ide/ide-acpi.c
index e07b189f3ec8504d7f2b19628253855f884ba2c6..0f6fb6b72dd91bcbb15de6f237e279df2d60c353 100644
(file)
--- a/
drivers/ide/ide-acpi.c
+++ b/
drivers/ide/ide-acpi.c
@@
-710,6
+710,8
@@
void ide_acpi_port_init_devices(ide_hwif_t *hwif)
for (i = 0; i < MAX_DRIVES; i++) {
drive = &hwif->drives[i];
+ memset(drive->acpidata, 0, sizeof(*drive->acpidata));
+
if (!drive->present)
continue;