batman-adv: Remove hdr_size skb size check in batadv_interface_rx
authorSven Eckelmann <sven@narfation.org>
Sun, 28 Feb 2016 10:38:52 +0000 (11:38 +0100)
committerAntonio Quartulli <a@unstable.cc>
Tue, 10 May 2016 10:26:43 +0000 (18:26 +0800)
commit7142fc107274a0ebfd31e995de61e71a1e84770f
tree33e2434430de4ea990269a4bbe73ca7d7fdf0916
parent6535db56d5453555b7a40230024225d9ec700585
batman-adv: Remove hdr_size skb size check in batadv_interface_rx

The callers of batadv_interface_rx have to make sure that enough data can
be pulled from the skb when they read the batman-adv header. The only two
functions using it are either calling pskb_may_pull with hdr_size directly
(batadv_recv_bcast_packet) or indirectly via batadv_check_unicast_packet
(batadv_recv_unicast_packet).

Reported-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/soft-interface.c