kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
authorFelix Fietkau <[email protected]>
Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)
committerFelix Fietkau <[email protected]>
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 <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Backport of r46721

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