]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Feb 2022 12:59:41 +0000 (15:59 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 10 Feb 2022 08:51:15 +0000 (10:51 +0200)
commiteebe8a89e618b849c7e630fd7130daa01ebe2d34
treef1aac8851af01ee2b9de41a6be6a6c8d20aaf981
parent365dd4dcc9e174dbe62937a68b1d484161a1acb3
wcn36xx: Uninitialized variable in wcn36xx_change_opchannel()

This code needs "channel" to be initialized to NULL for it to work
correctly.

Fixes: ffa61c6a0540 ("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>
Link: https://lore.kernel.org/r/20220201125941.GA22458@kili
drivers/net/wireless/ath/wcn36xx/main.c