Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202581
b: refs/heads/master
c: c146fc9
h: refs/heads/master
i:
  202579: 14d00a0
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 31, 2010
1 parent ee34670 commit 1327613
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: c5dc9a3581f486a738f82a5317229d494d0f475f
refs/heads/master: c146fc9fc9bc1dc0f629fe83d49f32ab0f11bfdc
11 changes: 3 additions & 8 deletions trunk/drivers/net/wan/sdla.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,14 +1211,9 @@ static int sdla_xfer(struct net_device *dev, struct sdla_mem __user *info, int r
}
else
{
temp = kmalloc(mem.len, GFP_KERNEL);
if (!temp)
return(-ENOMEM);
if(copy_from_user(temp, mem.data, mem.len))
{
kfree(temp);
return -EFAULT;
}
temp = memdup_user(mem.data, mem.len);
if (IS_ERR(temp))
return PTR_ERR(temp);
sdla_write(dev, mem.addr, temp, mem.len);
kfree(temp);
}
Expand Down

0 comments on commit 1327613

Please sign in to comment.