Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202580
b: refs/heads/master
c: c5dc9a3
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 31, 2010
1 parent 14d00a0 commit ee34670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: b23d00e9212d04eb894dd29422c7a53b36b8e32d
refs/heads/master: c5dc9a3581f486a738f82a5317229d494d0f475f
12 changes: 3 additions & 9 deletions trunk/drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,15 +2311,9 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
if (copy_from_user(&t, useraddr, sizeof(t)))
return -EFAULT;
/* Check t.len sanity ? */
fw_data = kmalloc(t.len, GFP_KERNEL);
if (!fw_data)
return -ENOMEM;

if (copy_from_user
(fw_data, useraddr + sizeof(t), t.len)) {
kfree(fw_data);
return -EFAULT;
}
fw_data = memdup_user(useraddr + sizeof(t), t.len);
if (IS_ERR(fw_data))
return PTR_ERR(fw_data);

ret = t3_load_fw(adapter, fw_data, t.len);
kfree(fw_data);
Expand Down

0 comments on commit ee34670

Please sign in to comment.