summaryrefslogtreecommitdiffstats
path: root/drivers/connector/cn_queue.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2009-10-02 04:40:04 +0200
committerDavid S. Miller <davem@davemloft.net>2009-10-02 19:53:58 +0200
commit293500a23f4b0698cb04abfecfc9a954d8ab2742 (patch)
tree15c873cfbdaebe5f644ae60958c656fd449061d5 /drivers/connector/cn_queue.c
parente1000e/igb/ixgbe: Don't report an error if devices don't support AER (diff)
downloadlinux-293500a23f4b0698cb04abfecfc9a954d8ab2742.tar.xz
linux-293500a23f4b0698cb04abfecfc9a954d8ab2742.zip
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.c3
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)
struct cn_callback_entry *cbq =
container_of(work, struct cn_callback_entry, work);
struct cn_callback_data *d = &cbq->data;
+ struct cn_msg *msg = NLMSG_DATA(nlmsg_hdr(d->skb));
- d->callback(d->callback_priv);
+ d->callback(msg);
d->destruct_data(d->ddata);
d->ddata = NULL;