diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-08 11:42:44 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-08 11:42:44 +0000 |
commit | 412e7280072110435a25af217aa402ddb6558873 (patch) | |
tree | a017d50f26741c8f9b566a576aad9f5595a911e5 /sys | |
parent | 1d47a332499e8013a4a9218068d22ef01cae9402 (diff) |
Put back bzero'ing cmd structure before filling it in which was lost
during driver rewritting at h2k7.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index d0e81cd37ea..74d0034f44c 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.35 2009/02/08 10:47:31 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.36 2009/02/08 11:42:43 grange Exp $ */ /* * Copyright (c) 2006, 2007 Alexander Yurchenko <grange@openbsd.org> @@ -655,6 +655,7 @@ ips_cmd(struct ips_softc *sc, int code, int drive, u_int32_t lba, void *data, /* Fill in command frame */ cmd = ccb->c_cmdva; + bzero(cmd, sizeof(*cmd)); cmd->code = code; cmd->id = ccb->c_id; cmd->drive = drive; |