Skip to content

Commit

Permalink
ath6kl: Initialize a variable properly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith Manoharan authored and Kalle Valo committed Jan 12, 2012
1 parent 4a8ce2f commit cbec267
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath6kl/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit cbec267

Please sign in to comment.