diff --git a/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch b/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch
index 9a7e81ba7d50af24c0db7e204d114d5f26ef67b0..7f51dd2dd667c18f5aea86d875508f750870ec11 100644
--- a/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch
+++ b/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch
@@ -35,7 +35,7 @@
 +		if (ret && ret != -EOPNOTSUPP) {
 +			ath10k_err(ar, "failed to get board id from otp: %d\n",
 +				ret);
-+			return ret;
++			goto err_free_firmware_files;
 +		}
  	}