kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 25 Aug 2015 07:25:20 +0000 (07:25 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 25 Aug 2015 07:25:20 +0000 (07:25 +0000)
commit58b629285be39250b775f3dc2d5c05f30caf8760
tree7a1dbc07570ae379be0325b27794c3d43322da1a
parent31ab13abf3c1422ff80ea4ab09a429237b33f37e
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46721 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch
target/linux/generic/patches-4.1/645-bridge_multicast_to_unicast.patch