batman-adv: Directly check read of icmp packet in copy_from_user
authorSven Eckelmann <sven@narfation.org>
Sat, 10 Dec 2011 14:28:35 +0000 (15:28 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Mon, 12 Dec 2011 11:11:06 +0000 (19:11 +0800)
commitd18eb45332478f319e5cf996e093228a68864cce
tree56aca42703092ea2198ff5ee68456968dab0f70e
parentc00b6856fc642b234895cfabd15b289e76726430
batman-adv: Directly check read of icmp packet in copy_from_user

The access_ok read check can be directly done in copy_from_user since a failure
of access_ok is handled the same way as an error in __copy_from_user.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/icmp_socket.c