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
..
2009-04-02 13:02:12 +00:00
2010-01-10 12:03:53 +00:00
2010-02-28 16:25:49 +00:00
2010-02-28 16:25:49 +00:00
2010-02-13 16:04:58 +00:00
2010-02-21 00:07:45 +00:00
2009-04-14 23:05:36 +00:00