diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index cec4c723db9a..8f32b779bc83 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1437,6 +1437,11 @@ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) | |||
1437 | */ | 1437 | */ |
1438 | #define sock_owned_by_user(sk) ((sk)->sk_lock.owned) | 1438 | #define sock_owned_by_user(sk) ((sk)->sk_lock.owned) |
1439 | 1439 | ||
1440 | static inline void sock_release_ownership(struct sock *sk) | ||
1441 | { | ||
1442 | sk->sk_lock.owned = 0; | ||
1443 | } | ||
1444 | |||
1440 | /* | 1445 | /* |
1441 | * Macro so as to not evaluate some arguments when | 1446 | * Macro so as to not evaluate some arguments when |
1442 | * lockdep is not enabled. | 1447 | * lockdep is not enabled. |