HomeFreeBSD

pci_ioctl: Avoid returning uninitialized error value if user provided empty…

Description

pci_ioctl: Avoid returning uninitialized error value if user provided empty buffer

In the weird case where the user-provided buffer was zero bytes, we could break
out of PCIOCGETCONF and return without initializing error. In this case,
initialize error to zero -- we successfully did nothing, as requested.

Reported by: Coverity
Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS330136: psm(4): Always initialize used values in debug print
Branches
Unknown
Tags
Unknown