diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2020-07-24 02:33:20 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-07-24 18:41:19 +0300 |
commit | 41750a750b45cbe2640d81585dd7c0f0ca6d7882 (patch) | |
tree | fc3c96ec828ff41189e7c1cadc4b0fda8d3cd41e /net/ipv4/ping.c | |
parent | d1cc3341f2d95b742bb075e309251fc2ae62a799 (diff) | |
parent | 8476df741c780591942ed5f73ed0de39badcb8c7 (diff) |
Merge branch 'android-4.4-p' of https://android.googlesource.com/kernel/common into lineage-17.1-caf-msm8998
This brings LA.UM.8.4.r1-05700-8x98.0 up to date with
https://android.googlesource.com/kernel/common/ android-4.4-p at commit:
8476df741c780 BACKPORT: xtables: extend matches and targets with .usersize
Conflicts:
drivers/usb/gadget/function/f_uac1.c
net/netlink/genetlink.c
sound/core/compress_offload.c
Change-Id: Id7b2fdf3942f1986edec869dcd965df632cc1c5f
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r-- | net/ipv4/ping.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index c0b633ee6c1e..3c698f575eb3 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -803,6 +803,9 @@ static int ping_v4_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) inet_sk_flowi_flags(sk), faddr, saddr, 0, 0, sk->sk_uid); + fl4.fl4_icmp_type = user_icmph.type; + fl4.fl4_icmp_code = user_icmph.code; + security_sk_classify_flow(sk, flowi4_to_flowi(&fl4)); rt = ip_route_output_flow(net, &fl4, sk); if (IS_ERR(rt)) { |