[PATCH 6.5 310/739] firmware: meson_sm: fix to avoid potential NULL pointer dereference