[PATCH 6.4 359/737] firmware: meson_sm: fix to avoid potential NULL pointer dereference