[PATCH 5.15 174/511] firmware: meson_sm: fix to avoid potential NULL pointer dereference