Page MenuHomeFreeBSD

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

Authored by araujo on May 23 2018, 9:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 2:47 PM
Unknown Object (File)
Tue, Sep 8, 6:53 AM
Unknown Object (File)
Mon, Sep 7, 10:54 PM
Unknown Object (File)
Mon, Aug 31, 2:25 PM
Unknown Object (File)
Sun, Aug 30, 5:41 PM
Unknown Object (File)
Fri, Aug 28, 10:01 AM
Unknown Object (File)
Wed, Aug 26, 6:49 AM
Unknown Object (File)
Fri, Aug 21, 10:12 AM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable