summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-04-29 15:02:34 +0000
committersimokawa <simokawa@FreeBSD.org>2003-04-29 15:02:34 +0000
commitfb8a76f7b336e4d5e98e16dd7b64cc61017f57b5 (patch)
treef55e0c63e31ed969f5746dcaaf3074f1e614ef76 /sys/dev/firewire
parenta40d8c9bb0061a20bd9103d9e64cf6cc08b1cc37 (diff)
downloadFreeBSD-src-fb8a76f7b336e4d5e98e16dd7b64cc61017f57b5.zip
FreeBSD-src-fb8a76f7b336e4d5e98e16dd7b64cc61017f57b5.tar.gz
Set recv.len to zero if we get no response.
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r--sys/dev/firewire/fwohci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c
index 5fbd872..ab97e95 100644
--- a/sys/dev/firewire/fwohci.c
+++ b/sys/dev/firewire/fwohci.c
@@ -1091,12 +1091,15 @@ fwohci_txd(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
xfer->resp = err;
if (xfer->retry_req != NULL)
xfer->retry_req(xfer);
- else
+ else {
+ xfer->recv.len = 0;
fw_xfer_done(xfer);
+ }
} else if (stat != FWOHCIEV_ACKPEND) {
if (stat != FWOHCIEV_ACKCOMPL)
xfer->state = FWXF_SENTERR;
xfer->resp = err;
+ xfer->recv.len = 0;
fw_xfer_done(xfer);
}
}
OpenPOWER on IntegriCloud