cvs commit: src/sys/kern kern_conf.c

[ Available lists | Index of cvs-all | Month of Oct 2006 | Week of 13 Oct 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Tor Egge <tegge@FreeBSD.org>
Date
13 Oct 2006 20:49:29
Subject
cvs commit: src/sys/kern kern_conf.c
Message-ID
200610132049.k9DKnObw045731@repoman.freebsd.org


[ Hide this part ]
tegge       2006-10-13 20:49:24 UTC

FreeBSD src repository

Modified files:
sys/kern kern_conf.c
Log:
Wait for thread count to reach zero in destroy_devl() even when no purge
method is defined, to avoid memory being modified after free.

Temporarily increase refcount in destroy_devl() to avoid a double free
if dev_rel() is called while waiting for thread count to reach zero.

Revision Changes Path
1.199 +6 -0 src/sys/kern/kern_conf.c


Elapsed time: 0.199 seconds