Browse Source

ath6kl: Initialize a variable properly

This prevents 'comp_pktq' from being used in an
incorrect manner.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Sujith Manoharan 13 years ago
parent
commit
cbec267a51
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/wireless/ath/ath6kl/htc.c

+ 1 - 0
drivers/net/wireless/ath/ath6kl/htc.c

@@ -2062,6 +2062,7 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
 	enum htc_endpoint_id id;
 	int n_fetched = 0;
 
+	INIT_LIST_HEAD(&comp_pktq);
 	*num_pkts = 0;
 
 	/*