]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix potential kernel paging error for unicast transmissions
authorAntonio Quartulli <antonio@meshcoding.com>
Sat, 15 Feb 2014 20:50:37 +0000 (21:50 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 17 Feb 2014 16:17:02 +0000 (17:17 +0100)
commit6fc4f74f3399ec2633ead2604025c1d153af08c3
treebb8f4e8e8f9833d993b8f09638a063d6290f5281
parent88793b6f37eabd4b3b304623b47f73a506a50f4f
batman-adv: fix potential kernel paging error for unicast transmissions

batadv_send_skb_prepare_unicast(_4addr) might reallocate the
skb's data. If it does then our ethhdr pointer is not valid
anymore in batadv_send_skb_unicast(), resulting in a kernel
paging error.

Fixing this by refetching the ethhdr pointer after the
potential reallocation.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/send.c