diff options
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 507c97d9913..50423394115 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.308 2020/01/26 00:53:31 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.309 2020/02/05 16:29:30 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -832,9 +832,10 @@ sdminphys(struct buf *bp) bp->b_bcount = max; } - (*link->adapter->dev_minphys)(bp, link); - if (link->adapter->dev_minphys != scsi_minphys) - scsi_minphys(bp, link); + if (link->adapter->dev_minphys != NULL) + (*link->adapter->dev_minphys)(bp, link); + + minphys(bp); device_unref(&sc->sc_dev); } |