]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix wrong initialization of struct channel
authorManinder Singh <maninder1.s@samsung.com>
Thu, 16 Jul 2015 03:55:33 +0000 (09:25 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 24 Jul 2015 07:47:32 +0000 (10:47 +0300)
commit5f15ea4c2ff73d209c20341047e00cc604a689da
tree721e6fe93af088fb6684cd2f32732cd81d5377d6
parent6764304e99c342c151da31c9896730a81172ea45
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: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c