Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21001
b: refs/heads/master
c: 8f22757
h: refs/heads/master
i:
  20999: 677082a
v: v3
  • Loading branch information
Dave Jones authored and David S. Miller committed Mar 12, 2006
1 parent 38d8cbc commit 25de919
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 535744878e34d01a53f946f26dfbca37186f2cf8
refs/heads/master: 8f22757ee84da64d4f662f1dd03dae95358a1efe
5 changes: 4 additions & 1 deletion trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ static __inline__ ssize_t tun_get_user(struct tun_struct *tun, struct iovec *iv,

if (align)
skb_reserve(skb, align);
if (memcpy_fromiovec(skb_put(skb, len), iv, len))
if (memcpy_fromiovec(skb_put(skb, len), iv, len)) {
tun->stats.rx_dropped++;
kfree_skb(skb);
return -EFAULT;
}

skb->dev = tun->dev;
switch (tun->flags & TUN_TYPE_MASK) {
Expand Down

0 comments on commit 25de919

Please sign in to comment.