diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2009-10-01 22:40:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-02 13:53:58 -0400 |
commit | 293500a23f4b0698cb04abfecfc9a954d8ab2742 (patch) | |
tree | 15c873cfbdaebe5f644ae60958c656fd449061d5 /drivers/connector/cn_queue.c | |
parent | 19d5afd4f0d26201d8d8bec351ee0442775a5379 (diff) |
connector: Keep the skb in cn_callback_data
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Acked-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/connector/cn_queue.c')
-rw-r--r-- | drivers/connector/cn_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c index 4a1dfe1f4ba9..b4cfac93f723 100644 --- a/drivers/connector/cn_queue.c +++ b/drivers/connector/cn_queue.c | |||
@@ -78,8 +78,9 @@ void cn_queue_wrapper(struct work_struct *work) | |||
78 | struct cn_callback_entry *cbq = | 78 | struct cn_callback_entry *cbq = |
79 | container_of(work, struct cn_callback_entry, work); | 79 | container_of(work, struct cn_callback_entry, work); |
80 | struct cn_callback_data *d = &cbq->data; | 80 | struct cn_callback_data *d = &cbq->data; |
81 | struct cn_msg *msg = NLMSG_DATA(nlmsg_hdr(d->skb)); | ||
81 | 82 | ||
82 | d->callback(d->callback_priv); | 83 | d->callback(msg); |
83 | 84 | ||
84 | d->destruct_data(d->ddata); | 85 | d->destruct_data(d->ddata); |
85 | d->ddata = NULL; | 86 | d->ddata = NULL; |