HomeFreeBSD

Similar to r311750, check for the result from smiGetModule to avoid a segfault

Description

Similar to r311750, check for the result from smiGetModule to avoid a segfault
when dereferencing a NULL pointer later on.

Choose to just check for the NULL pointer in the next for-loop for now to fix
the issue with a minimal amount of code churn

sys/queue.h use here would make more sense than using a static table

MFC after: 5 days

Details

Provenance
ngieAuthored on
Parents
rS311756: MFC r310614: Don't assign rtjp twice.
Branches
Unknown
Tags
Unknown