pthread_rwlock_unlock(3) returns 0 if successful, otherwise an error number
authoraraujo <araujo@FreeBSD.org>
Wed, 23 May 2018 09:34:51 +0000 (09:34 +0000)
committeraraujo <araujo@FreeBSD.org>
Wed, 23 May 2018 09:34:51 +0000 (09:34 +0000)
commit4601ac5d374f6689056bd883c0bfeefc66ed1ed4
tree7502c17da561dfadaaed7b4a049222db4e72259d
parent37e8ba211c5772397645ab488584575ddc9d36c2
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