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)
Sat, Mar 21, 6:14 PM
Unknown Object (File)
Wed, Mar 18, 10:24 AM
Unknown Object (File)
Tue, Mar 17, 5:44 AM
Unknown Object (File)
Tue, Mar 10, 4:37 PM
Unknown Object (File)
Tue, Mar 10, 1:49 AM
Unknown Object (File)
Mon, Mar 9, 6:00 PM
Unknown Object (File)
Sat, Mar 7, 12:15 PM
Unknown Object (File)
Fri, Mar 6, 11:15 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.