HomeFreeBSD

fd: always nullify *fdp in fget* routines

Description

fd: always nullify *fdp in fget* routines

Some consumers depend on the pointer being NULL if an error is returned.

The guarantee got broken in r357469.

Reported by: https://syzkaller.appspot.com/bug?extid=0c9b05e2b727aae21eef
Noted by: markj

Details

Provenance
mjgAuthored on
Parents
rS357553: cxgbe(4): Add a knob to allow netmap tx traffic to be checksummed by
Branches
Unknown
Tags
Unknown