Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278757
b: refs/heads/master
c: d18eb45
h: refs/heads/master
i:
  278755: 11c6eae
v: v3
  • Loading branch information
Sven Eckelmann authored and Marek Lindner committed Dec 12, 2011
1 parent 152b365 commit 172357d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: c00b6856fc642b234895cfabd15b289e76726430
refs/heads/master: d18eb45332478f319e5cf996e093228a68864cce
7 changes: 1 addition & 6 deletions trunk/net/batman-adv/icmp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,7 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff,
skb_reserve(skb, sizeof(struct ethhdr));
icmp_packet = (struct icmp_packet_rr *)skb_put(skb, packet_len);

if (!access_ok(VERIFY_READ, buff, packet_len)) {
len = -EFAULT;
goto free_skb;
}

if (__copy_from_user(icmp_packet, buff, packet_len)) {
if (copy_from_user(icmp_packet, buff, packet_len)) {
len = -EFAULT;
goto free_skb;
}
Expand Down

0 comments on commit 172357d

Please sign in to comment.