Commit 68775b6f authored by David S. Miller's avatar David S. Miller

Fix reverse logic in checking sock_writeable return

in UDP case.  I note in passing that the TCP case is
wrong because TCP does not use sock_writeable()s
parent 052343ed
......@@ -1097,7 +1097,7 @@ udp_write_space(struct sock *sk)
return;
/* Wait until we have enough socket memory. */
if (sock_writeable(sk))
if (!sock_writeable(sk))
return;
if (!xprt_test_and_set_wspace(xprt)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment