You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
iwlwifi: mvm: Fix an error code in iwl_mvm_up()
[ Upstream commit583d18336a] Return -ENODEV instead of success on this error path. Fixes:dd36a507c8("iwlwifi: mvm: look for the first supported channel when add/remove phy ctxt") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20210816183930.GA2068@kili Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c12692c3e9
commit
441a83ff27
@@ -1495,8 +1495,10 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
|
||||
while (!sband && i < NUM_NL80211_BANDS)
|
||||
sband = mvm->hw->wiphy->bands[i++];
|
||||
|
||||
if (WARN_ON_ONCE(!sband))
|
||||
if (WARN_ON_ONCE(!sband)) {
|
||||
ret = -ENODEV;
|
||||
goto error;
|
||||
}
|
||||
|
||||
chan = &sband->channels[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user