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)
commit03691cb385dccb85edf46daaaec5238ff6cc6d34
tree2448c70951799a0291e3028dce5c3b308585af38
parent40c63143b17a8c5dbe146db45c50fc342d5a5154
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