pthread_rwlock_unlock(3) returns 0 if successful, otherwise an error number
authorMarcelo Araujo <araujo@FreeBSD.org>
Wed, 23 May 2018 09:34:51 +0000 (09:34 +0000)
committerMarcelo Araujo <araujo@FreeBSD.org>
Wed, 23 May 2018 09:34:51 +0000 (09:34 +0000)
commit5f4c83abf5a96861ed567fbd7a3531aa6afe75f3
tree7502c17da561dfadaaed7b4a049222db4e72259d
parent6872fd3c9470e867df5ff4cdcbcfe758248b6b48
pthread_rwlock_unlock(3) returns 0 if successful, otherwise an error number
will be returned to indicate the error, so I'm applying an assert(3) to do
a sanity check of the return value.

Reported by: Coverity CID: 1391235, 1193654 and 1193651
Reviewed by: grehan
MFC after: 4 weeks.
Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D15533
usr.sbin/bhyve/mem.c