Skip to content
Commit 19be9e9a authored by Maninder Singh's avatar Maninder Singh Committed by Kalle Valo
Browse files

ath10k: fix wrong initialization of struct channel



chandef is initialized with NULL and on the very next line, we are using it to
get channel, which is not correct. Channel should be initialized after
obtaining chandef.

Found by cppcheck:

ath/ath10k/mac.c:839]: (error) Possible null pointer dereference: chandef

Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 1f5dbfbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment