On 02/27/14 11:59, Kohji Okuno wrote:
+       sc = kbd->kb_dev->si_drv1;
+       knlist_clear(&sc->gkb_rsel.si_note, 0);
+       knlist_destroy(&sc->gkb_rsel.si_note);
+
        free(kbd->kb_dev->si_drv1, M_DEVBUF);
        destroy_dev(kbd->kb_dev);


Hi,

You should put the "knlist_destroy()" after the "destroy_dev()" and leave out the "knlist_clear()" I think! Because "destroy_dev()" is a synchronous function which ensure that all character device refs are gone including knotes, if I'm not mistaken.

--HPS
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to