projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pxa-for-v3.17-2' of https://git.kernel.org/pub/scm/linux/kernel/git/hzhuan...
[cascardo/linux.git]
/
include
/
net
/
sock.h
diff --git
a/include/net/sock.h
b/include/net/sock.h
index
07b7fcd
..
173cae4
100644
(file)
--- a/
include/net/sock.h
+++ b/
include/net/sock.h
@@
-1730,8
+1730,8
@@
sk_dst_get(struct sock *sk)
rcu_read_lock();
dst = rcu_dereference(sk->sk_dst_cache);
- if (dst)
- dst
_hold(dst)
;
+ if (dst
&& !atomic_inc_not_zero(&dst->__refcnt)
)
+ dst
= NULL
;
rcu_read_unlock();
return dst;
}