summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi/cd.c')
-rw-r--r--sys/scsi/cd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 9c570781f32..63c792c0a20 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.240 2019/12/06 15:13:07 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.241 2020/01/25 21:40:34 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -694,6 +694,8 @@ cdminphys(struct buf *bp)
}
(*sc->sc_link->adapter->scsi_minphys)(bp, sc->sc_link);
+ if (sc->sc_link->adapter->scsi_minphys != scsi_minphys)
+ scsi_minphys(bp, sc->sc_link);
device_unref(&sc->sc_dev);
}