kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
authorFelix Fietkau <nbd@openwrt.org>
Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)
commitbba0c8f9c0f79cd3921a5d971830be0b7cbbc10f
tree2448c70951799a0291e3028dce5c3b308585af38
parentfcffd63a995b3eddd22cfd175d197ccc4b3a32d4
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