diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-17 20:22:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-17 20:22:23 +0000 |
commit | d71f94f8340b16fb4e5cb9ad2e7463776edd4a31 (patch) | |
tree | 209284b9858724d92ee47b737a3afdfa3c7f1477 /sys/scsi | |
parent | a4861c4d36364de803f99722a0d761c5ac74bfb6 (diff) |
Need to device_unreg() the implicit device_ref() done by cdlookup() in
cdminphys().
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/cd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 7d3bc84e03b..d31e6f80c65 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.102 2006/01/12 01:06:27 krw Exp $ */ +/* $OpenBSD: cd.c,v 1.103 2006/01/17 20:22:22 miod Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -718,6 +718,8 @@ cdminphys(bp) } (*cd->sc_link->adapter->scsi_minphys)(bp); + + device_unref(&cd->sc_dev); } int |