[PATCH v2 3/5] ath10k: drain tx before restarting hw
Kalle Valo
kvalo at qca.qualcomm.com
Fri May 16 07:37:23 PDT 2014
Kalle Valo <kvalo at qca.qualcomm.com> writes:
> Michal Kazior <michal.kazior at tieto.com> writes:
>
>> This makes sure no further tx requests are
>> submitted to HTT before driver teardown.
>>
>> This should prevent invalid pointer/NULL
>> dereference on htt tx pool in ath10k_htt_tx() in
>> some cases of heavy traffic.
>>
>> Reported-By: Ben Greear <greearb at candelatech.com>
>> Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
>
> For some reason I'm not receiving buildbot emails anymore, but I noticed
> via the kbuild-all archives that this patch has a warning:
>
> drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_drain_tx':
>>> drivers/net/wireless/ath/ath10k/mac.c:2442:2: error: implicit
> declaration of function 'lockdep_is_held'
> [-Werror=implicit-function-declaration]
>
> https://lists.01.org/pipermail/kbuild-all/2014-May/004387.html
I fixed it with this:
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -19,6 +19,7 @@
#include <net/mac80211.h>
#include <linux/etherdevice.h>
+#include <linux/lockdep.h>
#include "hif.h"
#include "core.h"
Let's see if buildbot is happier now.
--
Kalle Valo
More information about the ath10k
mailing list