svn commit: r299897 - head/usr.sbin/rpc.lockd
Don Lewis
truckman at FreeBSD.org
Mon May 16 05:17:44 UTC 2016
Author: truckman
Date: Mon May 16 05:17:43 2016
New Revision: 299897
URL: https://svnweb.freebsd.org/changeset/base/299897
Log:
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
Modified:
head/usr.sbin/rpc.lockd/lockd_lock.c
Modified: head/usr.sbin/rpc.lockd/lockd_lock.c
==============================================================================
--- head/usr.sbin/rpc.lockd/lockd_lock.c Mon May 16 05:01:44 2016 (r299896)
+++ head/usr.sbin/rpc.lockd/lockd_lock.c Mon May 16 05:17:43 2016 (r299897)
@@ -1600,6 +1600,7 @@ unlock_partialfilelock(const struct file
*/
deallocate_file_lock(releasedfl);
+ releasedfl = NULL;
}
}
More information about the svn-src-head
mailing list