mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't assume that bio_cmd is a bitfield.
Differential revision: https://reviews.freebsd.org/D5590
This commit is contained in:
parent
beb09e42a3
commit
34d4518209
1 changed files with 1 additions and 1 deletions
|
|
@ -1319,7 +1319,7 @@ amr_bio_command(struct amr_softc *sc, struct amr_command **acp)
|
|||
blkcount = (bio->bio_bcount + AMR_BLKSIZE - 1) / AMR_BLKSIZE;
|
||||
|
||||
ac->ac_mailbox.mb_command = cmd;
|
||||
if (bio->bio_cmd & (BIO_READ|BIO_WRITE)) {
|
||||
if (bio->bio_cmd == BIO_READ || bio->bio_cmd == BIO_WRITE) {
|
||||
ac->ac_mailbox.mb_blkcount = blkcount;
|
||||
ac->ac_mailbox.mb_lba = bio->bio_pblkno;
|
||||
if ((bio->bio_pblkno + blkcount) > sc->amr_drive[driveno].al_size) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue