diff
 int iwl_mvm_mld_rm_sta_id(struct iwl_mvm *mvm, u8 sta_id)
 {
+    if (!mvm)
+        return -EINVAL;
     int ret = iwl_mvm_mld_rm_sta_from_fw(mvm, sta_id);
     lockdep_assert_held(&mvm->mutex);
