diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 8ab05146a447..86a8ca177a29 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1197,7 +1197,8 @@ static inline struct dst_entry * | |||
1197 | __sk_dst_get(struct sock *sk) | 1197 | __sk_dst_get(struct sock *sk) |
1198 | { | 1198 | { |
1199 | return rcu_dereference_check(sk->sk_dst_cache, rcu_read_lock_held() || | 1199 | return rcu_dereference_check(sk->sk_dst_cache, rcu_read_lock_held() || |
1200 | sock_owned_by_user(sk)); | 1200 | sock_owned_by_user(sk) || |
1201 | lockdep_is_held(&sk->sk_lock.slock)); | ||
1201 | } | 1202 | } |
1202 | 1203 | ||
1203 | static inline struct dst_entry * | 1204 | static inline struct dst_entry * |