HomeFreeBSD

kern_synch: Fix some UB

Description

kern_synch: Fix some UB

It is UB to evaluate pointer comparisons when pointers do not point within
the same object. Instead, convert the pointers to numbers and compare the
numbers.

Reported by: kib
Discussed with: rlibby

Details

Provenance
cemAuthored on
Parents
rS356048: gpart(8): ms-basic-data is used for exFAT on GPT
Branches
Unknown
Tags
Unknown