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
F160895223: D38041.id115093.diff
Sun, Jun 28, 7:51 PM
Unknown Object (File)
Wed, Jun 24, 9:24 PM
Unknown Object (File)
Wed, Jun 24, 12:34 PM
Unknown Object (File)
Fri, Jun 19, 10:17 PM
Unknown Object (File)
Fri, Jun 19, 2:11 PM
Unknown Object (File)
Fri, Jun 19, 3:17 AM
Unknown Object (File)
May 18 2026, 12:39 AM
Unknown Object (File)
May 18 2026, 12:38 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49092
Build 45981: arc lint + arc unit

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.