[PATCH 5.10 159/406] firmware: meson_sm: fix to avoid potential NULL pointer dereference