[PATCH 6.1 294/600] firmware: meson_sm: fix to avoid potential NULL pointer dereference