]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28e924593c2bb7e9bcec78b7cd1d1e03a71e45b3
tree56aca42703092ea2198ff5ee68456968dab0f70e
parent971ec31cb070599e8bfd16072b1bd391645724ad
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