Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337975
b: refs/heads/master
c: 2a38e6f
h: refs/heads/master
i:
  337973: de9f587
  337971: 1b02fdc
  337967: 484dcc3
v: v3
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed Nov 15, 2012
1 parent b229404 commit 7431e56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 4087641b255cb003ce653aac79e3445fcb864552
refs/heads/master: 2a38e6fcf9173ffa8acf827c0b5d69863e012434
6 changes: 5 additions & 1 deletion trunk/drivers/staging/vt6656/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,13 @@ int iwctl_giwaplist(struct net_device *dev, struct iw_request_info *info,
return -EINVAL;

sock = kzalloc(sizeof(struct sockaddr) * IW_MAX_AP, GFP_KERNEL);
if (sock == NULL)
return -ENOMEM;
qual = kzalloc(sizeof(struct iw_quality) * IW_MAX_AP, GFP_KERNEL);
if (sock == NULL || qual == NULL)
if (qual == NULL) {
kfree(sock);
return -ENOMEM;
}

for (ii = 0, jj = 0; ii < MAX_BSS_NUM; ii++) {
if (!pBSS[ii].bActive)
Expand Down

0 comments on commit 7431e56

Please sign in to comment.