artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed0c46
)
correctly drain and destroy the bufq upon detach
author
jasper
<jasper@openbsd.org>
Wed, 23 Jul 2014 10:06:18 +0000
(10:06 +0000)
committer
jasper
<jasper@openbsd.org>
Wed, 23 Jul 2014 10:06:18 +0000
(10:06 +0000)
ok dlg@
sys/arch/octeon/dev/octcf.c
patch
|
blob
|
history
diff --git
a/sys/arch/octeon/dev/octcf.c
b/sys/arch/octeon/dev/octcf.c
index
3150065
..
cc842e2
100644
(file)
--- a/
sys/arch/octeon/dev/octcf.c
+++ b/
sys/arch/octeon/dev/octcf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: octcf.c,v 1.2
3 2014/07/22 17:26:03
jasper Exp $ */
+/* $OpenBSD: octcf.c,v 1.2
4 2014/07/23 10:06:18
jasper Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@
-274,9
+274,12
@@
octcfdetach(struct device *self, int flags)
{
struct octcf_softc *sc = (struct octcf_softc *)self;
+ bufq_drain(&sc->sc_bufq);
+
disk_gone(octcfopen, self->dv_unit);
/* Detach disk. */
+ bufq_destroy(&sc->sc_bufq);
disk_detach(&sc->sc_dk);
return (0);