]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
After the vnode unlock, mount point might be destroyed immediately,
authorkib <kib@FreeBSD.org>
Sat, 18 Jun 2016 20:22:53 +0000 (20:22 +0000)
committerkib <kib@FreeBSD.org>
Sat, 18 Jun 2016 20:22:53 +0000 (20:22 +0000)
commit084e078d6f378d8ca5663cdf33ee8630ce0d73d8
tree773a4bf40e78b0a4c764bb879c129d281e5c267e
parent895e3e7c19f29336867727bf5733ba3c607d7452
After the vnode unlock, mount point might be destroyed immediately,
dropping the reference on mnt_cred. Prevent this by referencing the
temporal credentials before unlock.

Tested by: pho
Reviewed by: dfr
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)
sys/nlm/nlm_advlock.c