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:
6ef190c
)
Swarm: Fix crash due to missing initialization
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 27 Sep 2008 17:32:16 +0000
(19:32 +0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Sat, 27 Sep 2008 17:32:16 +0000
(19:32 +0200)
If things are just right this will result in the hws[0]->parent being
passed to ide_host_add() being non-zero and an ooops a little later.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/mips/swarm.c
patch
|
blob
|
history
diff --git
a/drivers/ide/mips/swarm.c
b/drivers/ide/mips/swarm.c
index badf79fc9e3a1c67c3eef99bbbce4cb9c31eb355..39c9ee995857fcf5187b08b2526c14bc25b8de26 100644
(file)
--- a/
drivers/ide/mips/swarm.c
+++ b/
drivers/ide/mips/swarm.c
@@
-107,6
+107,7
@@
static int __devinit swarm_ide_probe(struct device *dev)
base = ioremap(offset, size);
+ memset(&hw, 0, sizeof(hw));
for (i = 0; i <= 7; i++)
hw.io_ports_array[i] =
(unsigned long)(base + ((0x1f0 + i) << 5));