0001-devfs_core.c-workaround-for-issue1873.patch

rumcic, 01/29/2011 04:22 PM

Download (931 Bytes)

View differences:

sys/vfs/devfs/devfs_core.c
2303 2303
static void
2304 2304
devfs_detached_filter_detach(struct knote *kn)
2305 2305
{
2306
#if 0
2306 2307
	cdev_t dev = (cdev_t)kn->kn_hook;
2307 2308

  
2308 2309
	knote_remove(&dev->si_kqinfo.ki_note, kn);
2310
#endif
2311
	devfs_debug(DEVFS_DEBUG_SHOW,
2312
		"Leaked %d due to missing knote_remove!\n",
2313
		sizeof(*kn));
2314
	print_backtrace(-1); /* XXX HACK - knote_remove -> panic */
2309 2315
}
2310 2316

  
2311 2317
static struct filterops devfs_detached_filterops =
2312
-