]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
NULL releasedfl after calling deallocate_file_lock() which frees it
authorDon Lewis <truckman@FreeBSD.org>
Mon, 16 May 2016 05:17:43 +0000 (05:17 +0000)
committerDon Lewis <truckman@FreeBSD.org>
Mon, 16 May 2016 05:17:43 +0000 (05:17 +0000)
commitcec77ff4bf31f4729ff928d521ad42a685efb6d5
treed04ff811110cc907d9be9784b1dcef3fcc93ba5a
parentc38ff13d6a6fa7c15f19bafa85e96510d5fa6f28
NULL releasedfl after calling deallocate_file_lock() which frees it
to avoid a use-after-free error in the debuglog() call at the top
of the loop.

Reported by: Coverity
CID: 1006080
MFC after: 1 week
usr.sbin/rpc.lockd/lockd_lock.c