projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sock: relax WARN_ON() in sock_owned_by_user()
[cascardo/linux.git]
/
include
/
net
/
sock.h
diff --git
a/include/net/sock.h
b/include/net/sock.h
index
52448ba
..
2fdb87f
100644
(file)
--- a/
include/net/sock.h
+++ b/
include/net/sock.h
@@
-1409,7
+1409,7
@@
static inline void unlock_sock_fast(struct sock *sk, bool slow)
static inline bool sock_owned_by_user(const struct sock *sk)
{
#ifdef CONFIG_LOCKDEP
- WARN_ON
(!lockdep_sock_is_held(sk)
);
+ WARN_ON
_ONCE(!lockdep_sock_is_held(sk) && debug_locks
);
#endif
return sk->sk_lock.owned;
}