ath6kl: Initialize a variable properly
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 10 Jan 2012 04:23:53 +0000 (09:53 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 12 Jan 2012 11:36:37 +0000 (13:36 +0200)
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>
drivers/net/wireless/ath/ath6kl/htc.c

index b01702258faf156d9b02e304c0b28688cb5f656a..2d721903640b51015e2202773cb4ba9a65041a08 100644 (file)
@@ -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;
 
        /*