diff
+#include <linux/printk.h>
+
 int iwl_mvm_mld_rm_sta_id(struct iwl_mvm *mvm, u8 sta_id)
 {
+    if (!mvm) {
+        pr_err("iwl_mvm_mld_rm_sta_id: mvm is NULL\n");
+        return -EINVAL;
+    }
     int ret = iwl_mvm_mld_rm_sta_from_fw(mvm, sta_id);
     lockdep_assert_held(&mvm->mutex);
