aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/drbd/drbd_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 4f33714fb3cd..e1f2c2e54f5f 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -1407,8 +1407,10 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
1407 drbd_free_bc(mdev->ldev); 1407 drbd_free_bc(mdev->ldev);
1408 mdev->ldev = NULL;); 1408 mdev->ldev = NULL;);
1409 1409
1410 if (mdev->md_io_tmpp) 1410 if (mdev->md_io_tmpp) {
1411 __free_page(mdev->md_io_tmpp); 1411 __free_page(mdev->md_io_tmpp);
1412 mdev->md_io_tmpp = NULL;
1413 }
1412 } 1414 }
1413 1415
1414 /* Disks got bigger while they were detached */ 1416 /* Disks got bigger while they were detached */