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)
Mon, May 6, 5:00 PM
Unknown Object (File)
Mon, May 6, 11:26 AM
Unknown Object (File)
Mon, Apr 29, 7:03 PM
Unknown Object (File)
Fri, Apr 26, 9:41 AM
Unknown Object (File)
Fri, Apr 19, 11:25 PM
Unknown Object (File)
Mar 29 2024, 10:31 AM
Unknown Object (File)
Dec 23 2023, 11:22 PM
Unknown Object (File)
Dec 22 2023, 10:27 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 16780
Build 16665: arc lint + arc unit