Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291133
b: refs/heads/master
c: 41eedf3
h: refs/heads/master
i:
  291131: 542e60b
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Mar 5, 2012
1 parent e6e017e commit 0f2a0d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5533513784a88049e19dd2ab380a452b61e5171e
refs/heads/master: 41eedf39dfb145fb8fa04cd5b799f7bdc7679696
13 changes: 9 additions & 4 deletions trunk/drivers/net/wireless/rndis_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2755,9 +2755,10 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev)
struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev);
struct ndis_80211_assoc_info *info = NULL;
u8 bssid[ETH_ALEN];
int resp_ie_len, req_ie_len;
unsigned int resp_ie_len, req_ie_len;
unsigned int offset;
u8 *req_ie, *resp_ie;
int ret, offset;
int ret;
bool roamed = false;
bool match_bss;

Expand Down Expand Up @@ -2785,7 +2786,9 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev)
ret = get_association_info(usbdev, info, CONTROL_BUFFER_SIZE);
if (!ret) {
req_ie_len = le32_to_cpu(info->req_ie_length);
if (req_ie_len > 0) {
if (req_ie_len > CONTROL_BUFFER_SIZE)
req_ie_len = CONTROL_BUFFER_SIZE;
if (req_ie_len != 0) {
offset = le32_to_cpu(info->offset_req_ies);

if (offset > CONTROL_BUFFER_SIZE)
Expand All @@ -2799,7 +2802,9 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev)
}

resp_ie_len = le32_to_cpu(info->resp_ie_length);
if (resp_ie_len > 0) {
if (resp_ie_len > CONTROL_BUFFER_SIZE)
resp_ie_len = CONTROL_BUFFER_SIZE;
if (resp_ie_len != 0) {
offset = le32_to_cpu(info->offset_resp_ies);

if (offset > CONTROL_BUFFER_SIZE)
Expand Down

0 comments on commit 0f2a0d7

Please sign in to comment.