devlink: remove implicit type set in port register
[cascardo/linux.git] / net / socket.c
index 979d314..afa3c34 100644 (file)
@@ -1046,7 +1046,7 @@ static int sock_fasync(int fd, struct file *filp, int on)
                return -EINVAL;
 
        lock_sock(sk);
-       wq = rcu_dereference_protected(sock->wq, sock_owned_by_user(sk));
+       wq = rcu_dereference_protected(sock->wq, lockdep_sock_is_held(sk));
        fasync_helper(fd, filp, on, &wq->fasync_list);
 
        if (!wq->fasync_list)