summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-07-15 18:15:45 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:57:58 +0100
commit9b743da96c8640dbfc864cb5d79c51547c3fadb4 (patch)
tree7579bddef2474d4504eb525fcc1f45b2c5abaa45 /drivers/block/drbd/drbd_worker.c
parent3b03ad5929e3ba5e1c3db7a70d426f883be061c2 (diff)
downloadlinux-9b743da96c8640dbfc864cb5d79c51547c3fadb4.tar.gz
linux-9b743da96c8640dbfc864cb5d79c51547c3fadb4.tar.bz2
linux-9b743da96c8640dbfc864cb5d79c51547c3fadb4.zip
drbd: Missing assignment of mdev before drbd_queue_work()
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index dac8d9bc4bec..9ee9b9fab7a8 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -790,6 +790,7 @@ int drbd_resync_finished(struct drbd_conf *mdev)
w = kmalloc(sizeof(struct drbd_work), GFP_ATOMIC);
if (w) {
w->cb = w_resync_finished;
+ w->mdev = mdev;
drbd_queue_work(&mdev->tconn->data.work, w);
return 1;
}