diff options
author | peter <peter@FreeBSD.org> | 1999-01-23 03:45:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-23 03:45:22 +0000 |
commit | 97e2cc89ef8a6c1f1a354ae29869c626cf8f617e (patch) | |
tree | 40a03e4f185235fc49861605760085cd0a6449a8 /include/kvm.h | |
parent | 260cf23ef1f394b8f4f29512be804afbd22761bf (diff) | |
download | FreeBSD-src-97e2cc89ef8a6c1f1a354ae29869c626cf8f617e.zip FreeBSD-src-97e2cc89ef8a6c1f1a354ae29869c626cf8f617e.tar.gz |
Update userref handling after discussion with submitter of previous
patch. lf can't be dereferenced after the unload attempt, in case it
was freed. Instead, decrement first and back it out if the unload failed.
This should be relatively immune to races caused by the user since the
userref count will be zero for the duration of the actual unloading and
will stop further kldunload attempts.
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
Diffstat (limited to 'include/kvm.h')
0 files changed, 0 insertions, 0 deletions