kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
authorFelix Fietkau <nbd@openwrt.org>
Tue, 25 Aug 2015 07:25:20 +0000 (07:25 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 25 Aug 2015 07:25:20 +0000 (07:25 +0000)
commit0dcdbe3cf0de0fbfbdc7c6614aab735bc4a254ff
tree7a1dbc07570ae379be0325b27794c3d43322da1a
parentfae11529b294473a742f8215274e8dbef21afd3f
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>
SVN-Revision: 46721
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch
target/linux/generic/patches-4.1/645-bridge_multicast_to_unicast.patch