Konstantin Belousov 22e62e7e6e 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
2010-02-28 16:25:49 +00:00
..
2010-02-28 16:14:34 +00:00
2010-02-25 19:47:47 +00:00
2010-02-20 10:19:19 +00:00
2010-02-27 18:55:43 +00:00
2010-02-25 19:42:51 +00:00
2010-02-28 16:25:49 +00:00
2010-02-18 22:34:29 +00:00
2010-02-18 22:10:55 +00:00
2010-02-21 01:12:18 +00:00