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);


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.

freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to