diff options
Diffstat (limited to 'net/x25/af_x25.c')
-rw-r--r-- | net/x25/af_x25.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index cbddd0cb83f1..6cffbc4da029 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c | |||
@@ -718,7 +718,7 @@ static int x25_wait_for_connection_establishment(struct sock *sk) | |||
718 | DECLARE_WAITQUEUE(wait, current); | 718 | DECLARE_WAITQUEUE(wait, current); |
719 | int rc; | 719 | int rc; |
720 | 720 | ||
721 | add_wait_queue_exclusive(sk->sk_sleep, &wait); | 721 | add_wait_queue_exclusive(sk_sleep(sk), &wait); |
722 | for (;;) { | 722 | for (;;) { |
723 | __set_current_state(TASK_INTERRUPTIBLE); | 723 | __set_current_state(TASK_INTERRUPTIBLE); |
724 | rc = -ERESTARTSYS; | 724 | rc = -ERESTARTSYS; |
@@ -738,7 +738,7 @@ static int x25_wait_for_connection_establishment(struct sock *sk) | |||
738 | break; | 738 | break; |
739 | } | 739 | } |
740 | __set_current_state(TASK_RUNNING); | 740 | __set_current_state(TASK_RUNNING); |
741 | remove_wait_queue(sk->sk_sleep, &wait); | 741 | remove_wait_queue(sk_sleep(sk), &wait); |
742 | return rc; | 742 | return rc; |
743 | } | 743 | } |
744 | 744 | ||
@@ -838,7 +838,7 @@ static int x25_wait_for_data(struct sock *sk, long timeout) | |||
838 | DECLARE_WAITQUEUE(wait, current); | 838 | DECLARE_WAITQUEUE(wait, current); |
839 | int rc = 0; | 839 | int rc = 0; |
840 | 840 | ||
841 | add_wait_queue_exclusive(sk->sk_sleep, &wait); | 841 | add_wait_queue_exclusive(sk_sleep(sk), &wait); |
842 | for (;;) { | 842 | for (;;) { |
843 | __set_current_state(TASK_INTERRUPTIBLE); | 843 | __set_current_state(TASK_INTERRUPTIBLE); |
844 | if (sk->sk_shutdown & RCV_SHUTDOWN) | 844 | if (sk->sk_shutdown & RCV_SHUTDOWN) |
@@ -858,7 +858,7 @@ static int x25_wait_for_data(struct sock *sk, long timeout) | |||
858 | break; | 858 | break; |
859 | } | 859 | } |
860 | __set_current_state(TASK_RUNNING); | 860 | __set_current_state(TASK_RUNNING); |
861 | remove_wait_queue(sk->sk_sleep, &wait); | 861 | remove_wait_queue(sk_sleep(sk), &wait); |
862 | return rc; | 862 | return rc; |
863 | } | 863 | } |
864 | 864 | ||