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
F103278939: D15533.diff
Sat, Nov 23, 12:09 AM
Unknown Object (File)
Sat, Nov 2, 10:44 PM
Unknown Object (File)
Oct 20 2024, 6:57 AM
Unknown Object (File)
Oct 1 2024, 7:50 PM
Unknown Object (File)
Sep 29 2024, 3:25 AM
Unknown Object (File)
Sep 28 2024, 10:33 AM
Unknown Object (File)
Sep 27 2024, 5:41 AM
Unknown Object (File)
Sep 15 2024, 11:26 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 Not Applicable
Unit
Tests Not Applicable