diff options
Diffstat (limited to 'net/sctp/inqueue.c')
| -rw-r--r-- | net/sctp/inqueue.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index cf6deed7e849..71b07466e880 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c | |||
| @@ -54,7 +54,7 @@ void sctp_inq_init(struct sctp_inq *queue) | |||
| 54 | queue->in_progress = NULL; | 54 | queue->in_progress = NULL; |
| 55 | 55 | ||
| 56 | /* Create a task for delivering data. */ | 56 | /* Create a task for delivering data. */ |
| 57 | INIT_WORK(&queue->immediate, NULL, NULL); | 57 | INIT_WORK(&queue->immediate, NULL); |
| 58 | 58 | ||
| 59 | queue->malloced = 0; | 59 | queue->malloced = 0; |
| 60 | } | 60 | } |
| @@ -97,7 +97,7 @@ void sctp_inq_push(struct sctp_inq *q, struct sctp_chunk *chunk) | |||
| 97 | * on the BH related data structures. | 97 | * on the BH related data structures. |
| 98 | */ | 98 | */ |
| 99 | list_add_tail(&chunk->list, &q->in_chunk_list); | 99 | list_add_tail(&chunk->list, &q->in_chunk_list); |
| 100 | q->immediate.func(q->immediate.data); | 100 | q->immediate.func(&q->immediate); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | /* Extract a chunk from an SCTP inqueue. | 103 | /* Extract a chunk from an SCTP inqueue. |
| @@ -205,9 +205,8 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) | |||
| 205 | * The intent is that this routine will pull stuff out of the | 205 | * The intent is that this routine will pull stuff out of the |
| 206 | * inqueue and process it. | 206 | * inqueue and process it. |
| 207 | */ | 207 | */ |
| 208 | void sctp_inq_set_th_handler(struct sctp_inq *q, | 208 | void sctp_inq_set_th_handler(struct sctp_inq *q, work_func_t callback) |
| 209 | void (*callback)(void *), void *arg) | ||
| 210 | { | 209 | { |
| 211 | INIT_WORK(&q->immediate, callback, arg); | 210 | INIT_WORK(&q->immediate, callback); |
| 212 | } | 211 | } |
| 213 | 212 | ||
