]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: check for more space before accessing the skb
authorAntonio Quartulli <ordex@autistici.org>
Sun, 26 Aug 2012 21:25:59 +0000 (23:25 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 29 Oct 2012 08:42:45 +0000 (09:42 +0100)
commita1e122e8fc2f69fa292ff56038b07659c67ad2cb
treee4ebbf1372f4841b98b05276550db37b38f0abf7
parenta4ab8af01f4491c31f050c70d6d58632e2028cb1
batman-adv: check for more space before accessing the skb

In batadv_check_unicast_ttvn() the code accesses both the unicast header and the
Ethernet header in the payload. For this reason pskb_may_pull() must be invoked
to check for the required space.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/routing.c