Skip to content

Commit

Permalink
drbd: Missing assignment of mdev before drbd_queue_work()
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed Nov 8, 2012
1 parent 3b03ad5 commit 9b743da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b743da

Please sign in to comment.