diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/af_irda.c | 5 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_sync.c | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 0578d4fa00a9..0f676908d15b 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c | |||
@@ -2563,9 +2563,8 @@ bed: | |||
2563 | jiffies + msecs_to_jiffies(val)); | 2563 | jiffies + msecs_to_jiffies(val)); |
2564 | 2564 | ||
2565 | /* Wait for IR-LMP to call us back */ | 2565 | /* Wait for IR-LMP to call us back */ |
2566 | __wait_event_interruptible(self->query_wait, | 2566 | err = __wait_event_interruptible(self->query_wait, |
2567 | (self->cachedaddr != 0 || self->errno == -ETIME), | 2567 | (self->cachedaddr != 0 || self->errno == -ETIME)); |
2568 | err); | ||
2569 | 2568 | ||
2570 | /* If watchdog is still activated, kill it! */ | 2569 | /* If watchdog is still activated, kill it! */ |
2571 | del_timer(&(self->watchdog)); | 2570 | del_timer(&(self->watchdog)); |
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index f4484719f3e6..f63c2388f38d 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net/netfilter/ipvs/ip_vs_sync.c | |||
@@ -1637,12 +1637,9 @@ static int sync_thread_master(void *data) | |||
1637 | continue; | 1637 | continue; |
1638 | } | 1638 | } |
1639 | while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) { | 1639 | while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) { |
1640 | int ret = 0; | 1640 | int ret = __wait_event_interruptible(*sk_sleep(sk), |
1641 | |||
1642 | __wait_event_interruptible(*sk_sleep(sk), | ||
1643 | sock_writeable(sk) || | 1641 | sock_writeable(sk) || |
1644 | kthread_should_stop(), | 1642 | kthread_should_stop()); |
1645 | ret); | ||
1646 | if (unlikely(kthread_should_stop())) | 1643 | if (unlikely(kthread_should_stop())) |
1647 | goto done; | 1644 | goto done; |
1648 | } | 1645 | } |