diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-04-29 15:02:34 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-04-29 15:02:34 +0000 |
commit | fb8a76f7b336e4d5e98e16dd7b64cc61017f57b5 (patch) | |
tree | f55e0c63e31ed969f5746dcaaf3074f1e614ef76 /sys/dev/firewire | |
parent | a40d8c9bb0061a20bd9103d9e64cf6cc08b1cc37 (diff) | |
download | FreeBSD-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.c | 5 |
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); } } |