Page MenuHomeFreeBSD

Fix coverity CID: 1391235, 1193654 and 1193651 (Unchecked return value)

Authored by araujo on May 23 2018, 9:16 AM.



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.

Test Plan

Rebuild bhyve with this patch:

  1. Test FreeBSD HEAD as a guest.
  2. Test FreeBSD HEAD as a guest with "wire guest memory -S".

Diff Detail

rS FreeBSD src repository
Lint OK
No Unit Test Coverage
Build Status
Buildable 16780
Build 16665: arc lint + arc unit

Event Timeline

araujo created this revision.May 23 2018, 9:16 AM
grehan accepted this revision.May 23 2018, 9:25 AM
This revision is now accepted and ready to land.May 23 2018, 9:25 AM
This revision was automatically updated to reflect the committed changes.