diff options
author | yar <yar@FreeBSD.org> | 2005-10-18 06:38:14 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-10-18 06:38:14 +0000 |
commit | f4b6099f4e75c9652040dc6c66c6594ee9eff1eb (patch) | |
tree | 502b24fb7e45bb8528ac3c5efaca17ed730b0bb3 /sys | |
parent | 6fb0cd4149d14feb90cfc8338228c6d1b80991c3 (diff) | |
download | FreeBSD-src-f4b6099f4e75c9652040dc6c66c6594ee9eff1eb.zip FreeBSD-src-f4b6099f4e75c9652040dc6c66c6594ee9eff1eb.tar.gz |
Spotted a call to a cdev-related function not wrapped
in "#ifdef KBD_INSTALL_CDEV".
Noticed by: glebius
Uncovered by: recent change to modules' Makefiles
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/kbdmux/kbdmux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/kbdmux/kbdmux.c b/sys/dev/kbdmux/kbdmux.c index f052a8e..8d99791 100644 --- a/sys/dev/kbdmux/kbdmux.c +++ b/sys/dev/kbdmux/kbdmux.c @@ -1283,7 +1283,9 @@ kbdmux_modevent(module_t mod, int type, void *data) if ((error = (*sw->enable)(kbd)) != 0) { (*sw->disable)(kbd); +#ifdef KBD_INSTALL_CDEV kbd_detach(kbd); +#endif (*sw->term)(kbd); kbd_delete_driver(&kbdmux_kbd_driver); break; |