diff options
author | Sreeram Ramachandran <sreeram@google.com> | 2014-07-08 11:37:03 -0700 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-03-11 15:57:07 +0100 |
commit | f51548b33103d1969c9fb1bd3f05829d816f2d8b (patch) | |
tree | 987340bbfd050da7786b248f814fccc6bace3ef6 /include/net | |
parent | e11d303b31ecdbd900e95d7bc4a8ad0bd7fe67bf (diff) | |
download | kernel_samsung_espresso10-f51548b33103d1969c9fb1bd3f05829d816f2d8b.zip kernel_samsung_espresso10-f51548b33103d1969c9fb1bd3f05829d816f2d8b.tar.gz kernel_samsung_espresso10-f51548b33103d1969c9fb1bd3f05829d816f2d8b.tar.bz2 |
Handle 'sk' being NULL in UID-based routing.
Bug: 15413527
Change-Id: If33bebb7b52c0ebfa8dac2452607bce0c2b0faa0
Signed-off-by: Sreeram Ramachandran <sreeram@google.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 3245ce2..f4b1489 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -147,7 +147,7 @@ static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, RT_SCOPE_UNIVERSE, proto, sk ? inet_sk_flowi_flags(sk) : 0, - daddr, saddr, dport, sport, sock_i_uid(sk)); + daddr, saddr, dport, sport, sk ? sock_i_uid(sk) : 0); if (sk) security_sk_classify_flow(sk, flowi4_to_flowi(fl4)); return ip_route_output_flow(net, fl4, sk); |