Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278758
b: refs/heads/master
c: b5a1eee
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann authored and Marek Lindner committed Dec 12, 2011
1 parent 172357d commit 2810770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: d18eb45332478f319e5cf996e093228a68864cce
refs/heads/master: b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c
5 changes: 2 additions & 3 deletions trunk/net/batman-adv/icmp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ static ssize_t bat_socket_read(struct file *file, char __user *buf,

spin_unlock_bh(&socket_client->lock);

error = copy_to_user(buf, &socket_packet->icmp_packet,
socket_packet->icmp_len);
packet_len = min(count, socket_packet->icmp_len);
error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len);

packet_len = socket_packet->icmp_len;
kfree(socket_packet);

if (error)
Expand Down

0 comments on commit 2810770

Please sign in to comment.