]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4a161b720034e556e7b08a784c067293e96590b
tree33e2434430de4ea990269a4bbe73ca7d7fdf0916
parente5626b0d846ede227bfbbe86700be5e78338f8bf
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