diff options
author | gibbs <gibbs@FreeBSD.org> | 2000-10-12 14:36:27 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2000-10-12 14:36:27 +0000 |
commit | 14f5acf06f8e509533ec780d43155a71a5e773e3 (patch) | |
tree | aa0c48bc217da922eb0b1b141992b0367c3282f6 /sys/dev/aic7xxx | |
parent | 244756d0e03a5a48ea8d69426ef1237e7ffcaede (diff) | |
download | FreeBSD-src-14f5acf06f8e509533ec780d43155a71a5e773e3.zip FreeBSD-src-14f5acf06f8e509533ec780d43155a71a5e773e3.tar.gz |
Bring back the ability to send cdbs of length 13->32 bytes. This was lost
during the qinfifo optimization. When swapping HSCBs, we were only copying
the first 32 bytes, the amount used in the common case of a cdb <= 12 bytes.
Larger cdbs are stored in the second 32 bytes of the cdb.
Noticed by: Marc Frajola <marc@terasolutions.com>
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_inline.h b/sys/dev/aic7xxx/aic7xxx_inline.h index 8f6d2ba..77f32c1 100644 --- a/sys/dev/aic7xxx/aic7xxx_inline.h +++ b/sys/dev/aic7xxx/aic7xxx_inline.h @@ -308,7 +308,7 @@ ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb) */ q_hscb = ahc->next_queued_scb->hscb; saved_tag = q_hscb->tag; - memcpy(q_hscb, scb->hscb, 32); + memcpy(q_hscb, scb->hscb, sizeof(*scb->hscb)); q_hscb->tag = saved_tag; q_hscb->next = scb->hscb->tag; |