Commit 99b74d2a authored by Krishna Kumar's avatar Krishna Kumar Committed by David S. Miller

[XFRM]: Do not schedule() when MSG_DONTWAIT.

parent 06e835c0
......@@ -775,7 +775,7 @@ int xfrm_lookup(struct dst_entry **dst_p, struct flowi *fl,
if (unlikely(nx<0)) {
err = nx;
if (err == -EAGAIN && !flags) {
if (err == -EAGAIN && flags) {
DECLARE_WAITQUEUE(wait, current);
add_wait_queue(&km_waitq, &wait);
......
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