projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0bc84
)
Fix uninitialized variables in ide controller
author
Nathan Binkert
<binkertn@umich.edu>
Thu, 30 Jun 2005 02:16:40 +0000
(22:16 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Thu, 30 Jun 2005 02:16:40 +0000
(22:16 -0400)
dev/ide_ctrl.cc:
Initialize variables to zero to avoid uninitialized usage.
--HG--
extra : convert_revision :
98fd0bfc2b7530938c6ab3a55345d0e594098238
dev/ide_ctrl.cc
patch
|
blob
|
history
diff --git
a/dev/ide_ctrl.cc
b/dev/ide_ctrl.cc
index 0037e06e0500d77d4f7bdaccb9419e3afee14ad8..785f18ae86c289425a9d4217c876644f6afe8279 100644
(file)
--- a/
dev/ide_ctrl.cc
+++ b/
dev/ide_ctrl.cc
@@
-103,6
+103,8
@@
IdeController::IdeController(Params *p)
// setup the disks attached to controller
memset(disks, 0, sizeof(IdeDisk *) * 4);
+ dev[0] = 0;
+ dev[1] = 0;
if (params()->disks.size() > 3)
panic("IDE controllers support a maximum of 4 devices attached!\n");