aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index c416725d28c4..7a186e74b1b3 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -715,7 +715,7 @@ static int netlink_mmap_sendmsg(struct sock *sk, struct msghdr *msg,
715 * after validation, the socket and the ring may only be used by a 715 * after validation, the socket and the ring may only be used by a
716 * single process, otherwise we fall back to copying. 716 * single process, otherwise we fall back to copying.
717 */ 717 */
718 if (atomic_long_read(&sk->sk_socket->file->f_count) > 2 || 718 if (atomic_long_read(&sk->sk_socket->file->f_count) > 1 ||
719 atomic_read(&nlk->mapped) > 1) 719 atomic_read(&nlk->mapped) > 1)
720 excl = false; 720 excl = false;
721 721