aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-02-28 16:25:49 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-02-28 16:25:49 +0000
commit22e62e7e6ee76367e995f8c57c1ab745efceb316 (patch)
treeef34f9a348a27cb76f285b20cd1a1d67c07ffc33 /sys/fs/msdosfs
parentf7255c488c21d50bc1a12a98d3a004aa0df5cda2 (diff)
downloadsrc-22e62e7e6ee76367e995f8c57c1ab745efceb316.tar.gz
src-22e62e7e6ee76367e995f8c57c1ab745efceb316.zip
In both if_tun and if_tap:
Do not do additional dev_ref() on the newly created interface in the if_clone create method [1]. This reference is not needed and never removed, causing struct cdevpriv leakage. Remove the setting of SI_CHEAPCLONE flag as well, since it is unused. For dev_clone handlers, create cdevs with the call make_dev_credf(MAKEDEV_REF) instead of calling make_dev() and then dev_ref(), to avoid a race. Call drain_dev_clone_events() at the module unload time after dev_clone handler is deinstalled. Submitted by: Mikolaj Golub <to.my.trociny gmail com> [1] MFC after: 1 week
Notes
Notes: svn path=/head/; revision=204464
Diffstat (limited to 'sys/fs/msdosfs')
0 files changed, 0 insertions, 0 deletions