diff --git a/patches.suse/iwlwifi-Fix-EIO-error-code-that-is-never-returned.patch b/patches.suse/iwlwifi-Fix-EIO-error-code-that-is-never-returned.patch new file mode 100644 index 0000000..cb1871b --- /dev/null +++ b/patches.suse/iwlwifi-Fix-EIO-error-code-that-is-never-returned.patch @@ -0,0 +1,38 @@ +From c305c94bdc18e45b5ad1db54da4269f8cbfdff6b Mon Sep 17 00:00:00 2001 +From: Colin Ian King +Date: Tue, 7 Sep 2021 11:46:58 +0100 +Subject: [PATCH] iwlwifi: Fix -EIO error code that is never returned +Git-commit: c305c94bdc18e45b5ad1db54da4269f8cbfdff6b +References: git-fixes +Patch-mainline: v5.18-rc1 + +Currently the error -EIO is being assinged to variable ret when +the READY_BIT is not set but the function iwlagn_mac_start returns +0 rather than ret. Fix this by returning ret instead of 0. + +Addresses-Coverity: ("Unused value") +Fixes: 7335613ae27a ("iwlwifi: move all mac80211 related functions to one place") +Signed-off-by: Colin Ian King +Link: https://lore.kernel.org/r/20210907104658.14706-1-colin.king@canonical.com +Signed-off-by: Luca Coelho +Signed-off-by: Oliver Neukum +--- + drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c +index 754876cd27ce..e8bd4f0e3d2d 100644 +--- a/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ++++ b/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c +@@ -299,7 +299,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw) + + priv->is_open = 1; + IWL_DEBUG_MAC80211(priv, "leave\n"); +- return 0; ++ return ret; + } + + static void iwlagn_mac_stop(struct ieee80211_hw *hw) +-- +2.40.0 + diff --git a/series.conf b/series.conf index b91c7c3..79c5e9a 100644 --- a/series.conf +++ b/series.conf @@ -62301,6 +62301,7 @@ patches.suse/ixgbe-add-the-ability-for-the-PF-to-disable-VF-link-.patch patches.suse/ixgbe-add-improvement-for-MDD-response-functionality.patch patches.suse/ixgbevf-add-disable-link-state.patch + patches.suse/iwlwifi-Fix-EIO-error-code-that-is-never-returned.patch patches.suse/msft-hv-2552-net-netvsc-remove-break-after-return.patch patches.suse/drivers-net-xgene-Fix-regression-in-CRC-stripping.patch patches.suse/llc-fix-netdevice-reference-leaks-in-llc_ui_bind.patch