diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2010-03-02 10:32:34 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-03-02 10:32:34 +0000 |
| commit | bfc990442477460a3a5faecf12c39d0440037324 (patch) | |
| tree | 5c2a5aaf2f35b0669a3821e83e2864426bffade6 /sys | |
| parent | 61865144b3888290f92ee3a57920c1d33a68c146 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_conf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index e570fddbea3d..daf0e95cace2 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -655,7 +655,7 @@ prep_cdevsw(struct cdevsw *devsw) cdevsw_free_devlocked(dsw2); } -struct cdev * +static struct cdev * make_dev_credv(int flags, struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid, gid_t gid, int mode, const char *fmt, va_list ap) @@ -953,7 +953,8 @@ clone_setup(struct clonedevs **cdp) } int -clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, struct cdev **dp, int extra) +clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, + struct cdev **dp, int extra) { struct clonedevs *cd; struct cdev *dev, *ndev, *dl, *de; @@ -1124,6 +1125,7 @@ destroy_dev_sched_cbl(struct cdev *dev, void (*cb)(void *), void *arg) int destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg) { + dev_lock(); return (destroy_dev_sched_cbl(dev, cb, arg)); } @@ -1131,6 +1133,7 @@ destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg) int destroy_dev_sched(struct cdev *dev) { + return (destroy_dev_sched_cb(dev, NULL, NULL)); } |
