From 2e7d0a9183f99c4b898d431f3220115e0260e32c Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 28 Feb 2013 07:45:47 +0300 Subject: [PATCH] --- yaml --- r: 368359 b: refs/heads/master c: f6baf153eec3cd195589b7cfe32b4ea62d8ec9d1 h: refs/heads/master i: 368357: a3656b51e89afbc258aeeedacc53648e25549271 368355: 3df188ac9c18b7148bb0716a8c269e82c4e705f9 368351: 1557b293ef6e832f74052a5f76a787b1eaaef438 v: v3 --- [refs] | 2 +- trunk/drivers/net/wireless/ath/ath6kl/htc_pipe.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 283173199535..2c605a31e00a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6f56b06e74e2805577bf7940dc0fb17b3310d6b6 +refs/heads/master: f6baf153eec3cd195589b7cfe32b4ea62d8ec9d1 diff --git a/trunk/drivers/net/wireless/ath/ath6kl/htc_pipe.c b/trunk/drivers/net/wireless/ath/ath6kl/htc_pipe.c index 281390178e3d..9adb56741bc3 100644 --- a/trunk/drivers/net/wireless/ath/ath6kl/htc_pipe.c +++ b/trunk/drivers/net/wireless/ath/ath6kl/htc_pipe.c @@ -988,8 +988,6 @@ static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb, htc_hdr = (struct htc_frame_hdr *) netdata; - ep = &target->endpoint[htc_hdr->eid]; - if (htc_hdr->eid >= ENDPOINT_MAX) { ath6kl_dbg(ATH6KL_DBG_HTC, "HTC Rx: invalid EndpointID=%d\n", @@ -997,6 +995,7 @@ static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb, status = -EINVAL; goto free_skb; } + ep = &target->endpoint[htc_hdr->eid]; payload_len = le16_to_cpu(get_unaligned(&htc_hdr->payld_len));