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)
commit4fb11a76bf7882f389e131d99d78e9d11767ad3a
tree99d1b25d41301aa18d84b95adb4fab73b1cda6e0
parent6c967cdf50553d275028c117ae1a71168c118038
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

SVN-Revision: 47001
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch