Page MenuHomeFreeBSD

stand/ofw: dev can't be NULL here
ClosedPublic

Authored by imp on Jan 13 2023, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 5:21 AM
Unknown Object (File)
Thu, Aug 29, 7:09 PM
Unknown Object (File)
Thu, Aug 29, 6:56 PM
Unknown Object (File)
Tue, Aug 20, 7:36 PM
Unknown Object (File)
Jul 12 2024, 3:10 AM
Unknown Object (File)
Jul 3 2024, 3:39 AM
Unknown Object (File)
Jun 29 2024, 12:18 PM
Unknown Object (File)
Jun 20 2024, 8:07 PM
Subscribers

Details

Summary

dev can't be NULL here. ofw_common_parsedev is always called via
devparse (indirectly through dv_parsedev() calls there which call it
with the args unchanged). In the past, ofw_getdev could call us with
NULL pointer for the parse-only case, but that's now all handled inside
of devparse for simplicity.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 13 2023, 4:33 PM
This revision is now accepted and ready to land.Jan 13 2023, 7:39 PM
This revision was automatically updated to reflect the committed changes.
stand/libofw/devicename.c
111

default_parsedev() is actually testing it too.