Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202781
b: refs/heads/master
c: a906b06
h: refs/heads/master
i:
  202779: 2e97d90
v: v3
  • Loading branch information
Julia Lawall authored and John W. Linville committed Jun 2, 2010
1 parent e7a211d commit a5141a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: b7b1b512287d6917d4976a4ee0e7d72c4edf52eb
refs/heads/master: a906b060b069d84e9d2b7fe60cc7a7f893be4c0c
11 changes: 3 additions & 8 deletions trunk/drivers/net/wireless/prism54/isl_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2751,14 +2751,9 @@ prism54_hostapd(struct net_device *ndev, struct iw_point *p)
p->length > PRISM2_HOSTAPD_MAX_BUF_SIZE || !p->pointer)
return -EINVAL;

param = kmalloc(p->length, GFP_KERNEL);
if (param == NULL)
return -ENOMEM;

if (copy_from_user(param, p->pointer, p->length)) {
kfree(param);
return -EFAULT;
}
param = memdup_user(p->pointer, p->length);
if (IS_ERR(param))
return PTR_ERR(param);

switch (param->cmd) {
case PRISM2_SET_ENCRYPTION:
Expand Down

0 comments on commit a5141a2

Please sign in to comment.