From f27778f03e1895835fb85a67ae60f1b4aff6f431 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 14 Sep 2010 04:02:44 +0000 Subject: scsi_xsh_del the xs handler on DEACTIVATE. same change as sd.c r1.212. matthew@ pointed out that cd(4) and st(4) would need the same change. --- sys/scsi/st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/scsi/st.c') diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 44d268b06ec..3b5210a7c34 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.110 2010/09/14 01:43:38 krw Exp $ */ +/* $OpenBSD: st.c,v 1.111 2010/09/14 04:02:43 dlg Exp $ */ /* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */ /* @@ -358,6 +358,7 @@ stactivate(struct device *self, int act) case DVACT_DEACTIVATE: st->flags |= ST_DYING; bufq_drain(&st->sc_bufq); + scsi_xsh_del(&st->sc_xsh); break; } -- cgit v1.2.3