* [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()
@ 2022-02-01 12:59 Dan Carpenter
2022-02-01 21:34 ` Bryan O'Donoghue
2022-02-10 8:51 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2022-02-01 12:59 UTC (permalink / raw)
To: Kalle Valo, Bryan O'Donoghue; +Cc: wcn36xx, linux-wireless, kernel-janitors
This code needs "channel" to be initialized to NULL for it to work
correctly.
Fixes: d6f2746691cb ("wcn36xx: Track the band and channel we are tuned to")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
drivers/net/wireless/ath/wcn36xx/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 75661d449712..1a06eff07107 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -394,7 +394,7 @@ static void wcn36xx_change_opchannel(struct wcn36xx *wcn, int ch)
struct ieee80211_vif *vif = NULL;
struct wcn36xx_vif *tmp;
struct ieee80211_supported_band *band;
- struct ieee80211_channel *channel;
+ struct ieee80211_channel *channel = NULL;
unsigned long flags;
int i, j;
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()
2022-02-01 12:59 [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel() Dan Carpenter
@ 2022-02-01 21:34 ` Bryan O'Donoghue
2022-02-10 8:51 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Bryan O'Donoghue @ 2022-02-01 21:34 UTC (permalink / raw)
To: Dan Carpenter, Kalle Valo, Loic Poulain
Cc: wcn36xx, linux-wireless, kernel-janitors
On 01/02/2022 12:59, Dan Carpenter wrote:
> This code needs "channel" to be initialized to NULL for it to work
> correctly.
>
> Fixes: d6f2746691cb ("wcn36xx: Track the band and channel we are tuned to")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
good catch
Reviewed-by: Bryan O'Donoghue <bryan.odonghue@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()
2022-02-01 12:59 [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel() Dan Carpenter
2022-02-01 21:34 ` Bryan O'Donoghue
@ 2022-02-10 8:51 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2022-02-10 8:51 UTC (permalink / raw)
To: Dan Carpenter
Cc: Bryan O'Donoghue, wcn36xx, linux-wireless, kernel-janitors
Dan Carpenter <dan.carpenter@oracle.com> wrote:
> This code needs "channel" to be initialized to NULL for it to work
> correctly.
>
> Fixes: d6f2746691cb ("wcn36xx: Track the band and channel we are tuned to")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> Reviewed-by: Bryan O'Donoghue <bryan.odonghue@linaro.org>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
11e41e292937 wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20220201125941.GA22458@kili/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-10 8:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 12:59 [PATCH] wcn36xx: Uninitialized variable in wcn36xx_change_opchannel() Dan Carpenter
2022-02-01 21:34 ` Bryan O'Donoghue
2022-02-10 8:51 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.