]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/iucv/af_iucv.c
af_iucv: block writing if msg limit is exceeded
[karo-tx-linux.git] / net / iucv / af_iucv.c
index 3ce0259499edff36c4508d09eff660a85d0d772b..ef6ab71921fc562cd3780a30541c4c238f71bee9 100644 (file)
@@ -1490,7 +1490,7 @@ unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
        if (sk->sk_state == IUCV_DISCONN)
                mask |= POLLIN;
 
-       if (sock_writeable(sk))
+       if (sock_writeable(sk) && iucv_below_msglim(sk))
                mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
        else
                set_bit(SOCK_ASYNC_NOSPACE, &sk->sk_socket->flags);