diff options
Diffstat (limited to 'net/sctp/associola.c')
| -rw-r--r-- | net/sctp/associola.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 39471d3b31b9..ad0057db0f91 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
| @@ -61,7 +61,7 @@ | |||
| 61 | #include <net/sctp/sm.h> | 61 | #include <net/sctp/sm.h> |
| 62 | 62 | ||
| 63 | /* Forward declarations for internal functions. */ | 63 | /* Forward declarations for internal functions. */ |
| 64 | static void sctp_assoc_bh_rcv(struct sctp_association *asoc); | 64 | static void sctp_assoc_bh_rcv(struct work_struct *work); |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | /* 1st Level Abstractions. */ | 67 | /* 1st Level Abstractions. */ |
| @@ -269,9 +269,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a | |||
| 269 | 269 | ||
| 270 | /* Create an input queue. */ | 270 | /* Create an input queue. */ |
| 271 | sctp_inq_init(&asoc->base.inqueue); | 271 | sctp_inq_init(&asoc->base.inqueue); |
| 272 | sctp_inq_set_th_handler(&asoc->base.inqueue, | 272 | sctp_inq_set_th_handler(&asoc->base.inqueue, sctp_assoc_bh_rcv); |
| 273 | (void (*)(void *))sctp_assoc_bh_rcv, | ||
| 274 | asoc); | ||
| 275 | 273 | ||
| 276 | /* Create an output queue. */ | 274 | /* Create an output queue. */ |
| 277 | sctp_outq_init(asoc, &asoc->outqueue); | 275 | sctp_outq_init(asoc, &asoc->outqueue); |
| @@ -946,8 +944,11 @@ out: | |||
| 946 | } | 944 | } |
| 947 | 945 | ||
| 948 | /* Do delayed input processing. This is scheduled by sctp_rcv(). */ | 946 | /* Do delayed input processing. This is scheduled by sctp_rcv(). */ |
| 949 | static void sctp_assoc_bh_rcv(struct sctp_association *asoc) | 947 | static void sctp_assoc_bh_rcv(struct work_struct *work) |
| 950 | { | 948 | { |
| 949 | struct sctp_association *asoc = | ||
| 950 | container_of(work, struct sctp_association, | ||
| 951 | base.inqueue.immediate); | ||
| 951 | struct sctp_endpoint *ep; | 952 | struct sctp_endpoint *ep; |
| 952 | struct sctp_chunk *chunk; | 953 | struct sctp_chunk *chunk; |
| 953 | struct sock *sk; | 954 | struct sock *sk; |
