[PATCH 1/1] ath10k: fixing wrong initialization of struct channel

Maninder Singh maninder1.s at samsung.com
Tue Jul 21 04:59:44 PDT 2015


>> 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.
>>
>> Signed-off-by: Maninder Singh <maninder1.s at samsung.com>

>How did you find this bug?

Static anlysis reports this bug like coverity or any other static tool like cppcheck :-

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

Thanks,
Maninder


More information about the ath10k mailing list