artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c692590
)
Add missing device_unref() calls.
author
visa
<visa@openbsd.org>
Sun, 10 Jul 2022 08:33:00 +0000
(08:33 +0000)
committer
visa
<visa@openbsd.org>
Sun, 10 Jul 2022 08:33:00 +0000
(08:33 +0000)
OK kettenis@
sys/arch/sparc64/dev/vldcp.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc64/dev/vldcp.c
b/sys/arch/sparc64/dev/vldcp.c
index
6d68638
..
ca48a46
100644
(file)
--- a/
sys/arch/sparc64/dev/vldcp.c
+++ b/
sys/arch/sparc64/dev/vldcp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vldcp.c,v 1.2
3 2022/07/02 08:50:41
visa Exp $ */
+/* $OpenBSD: vldcp.c,v 1.2
4 2022/07/10 08:33:00
visa Exp $ */
/*
* Copyright (c) 2009, 2012 Mark Kettenis
*
@@
-683,6
+683,7
@@
vldcpkqfilter(dev_t dev, struct knote *kn)
break;
default:
+ device_unref(&sc->sc_dv);
return (EINVAL);
}
@@
-692,5
+693,6
@@
vldcpkqfilter(dev_t dev, struct knote *kn)
klist_insert_locked(klist, kn);
splx(s);
+ device_unref(&sc->sc_dv);
return (0);
}