HomeFreeBSD

libefi: pdinfo_t pd_unit and pd_open should be unsigned

Description

libefi: pdinfo_t pd_unit and pd_open should be unsigned

The device index, partition index and reference counter are all positive
numbers. However, since our internal partition number may be negative
to indicate GPT table, the compare expression need to take care when comparing
pdinfo_t and partition data.

Details

Provenance
tsoomeAuthored on
Parents
rS323904: Add missing locking. Found by Coverity while scanning the usrsctp
Branches
Unknown
Tags
Unknown