summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2007-07-11 22:25:38 +0000
committermjacob <mjacob@FreeBSD.org>2007-07-11 22:25:38 +0000
commit8ba0ce0fca7af2b930d07ea0f2ee39bc919e4f84 (patch)
treeaabec493962edcaafced0f1a1f6921c45b300aff /sys
parente9fe8191d7a74e78be304c8c21c1a8c31a19f7d9 (diff)
downloadFreeBSD-src-8ba0ce0fca7af2b930d07ea0f2ee39bc919e4f84.zip
FreeBSD-src-8ba0ce0fca7af2b930d07ea0f2ee39bc919e4f84.tar.gz
In the function pc98_check_if_type for the non-8251 case
make sure we initialize fileds in the iod that otherwise would have been initialized. Reviewed by: nate, ken, warner Approved by: re (ken)
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/cbus/sio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index fcab170..718214d 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -4314,6 +4314,10 @@ pc98_check_if_type(device_t dev, struct siodev *iod)
else
iod->irq = irq_tab[0][tmp & 0x07];
}
+ iod->cmd = 0;
+ iod->sts = 0;
+ iod->mod = 0;
+ iod->ctrl = 0;
}
if ( iod->irq == -1 ) return -1;
OpenPOWER on IntegriCloud