Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202583
b: refs/heads/master
c: 7d88950
h: refs/heads/master
i:
  202581: 1327613
  202579: 14d00a0
  202575: a5fc299
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 31, 2010
1 parent 0a95a91 commit a51c6a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 042604d2a3ee59c84f8293988caf35bac5de9eb3
refs/heads/master: 7d88950426da812a6ab93ee1bba821f7f0ec1766
14 changes: 4 additions & 10 deletions trunk/drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -2038,16 +2038,10 @@ fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)

/* Now copy the data to the card. */

buf = kmalloc(wrthdr.size, GFP_KERNEL);
if (!buf)
return -ENOMEM;

if (copy_from_user(buf,
ifr->ifr_data + sizeof (struct fstioc_write),
wrthdr.size)) {
kfree(buf);
return -EFAULT;
}
buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write),
wrthdr.size);
if (IS_ERR(buf))
return PTR_ERR(buf);

memcpy_toio(card->mem + wrthdr.offset, buf, wrthdr.size);
kfree(buf);
Expand Down

0 comments on commit a51c6a6

Please sign in to comment.