kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)
commit8a9247b7a9923f1e215a16bf32e628d89ec37777
tree2448c70951799a0291e3028dce5c3b308585af38
parent4b58574927ad2f6abe886a8665ba656394c82b54
kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()

A call to pskb_may_pull() might reallocate skb->data. Therefore we
should only assign the src-pointer after any potential reallocations.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r46721

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47001 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch