summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-05-20 14:45:07 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-05-21 21:12:01 +0200
commit4e23a59ed1c5f12e14f7899855f8379b3d42e578 (patch)
tree29317f39d5f2b482940df3c0159410fdfa553631
parent23ce422748def9652fdc019f740cd7900fa2fe3b (diff)
downloadop-kernel-dev-4e23a59ed1c5f12e14f7899855f8379b3d42e578.zip
op-kernel-dev-4e23a59ed1c5f12e14f7899855f8379b3d42e578.tar.gz
drbd: Do not free p_uuid early, this is done in the exit code of the receiver
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--drivers/block/drbd/drbd_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index a949fc4..be2d2da 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -1213,8 +1213,6 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
&& (ns.pdsk < D_INCONSISTENT ||
ns.pdsk == D_UNKNOWN ||
ns.pdsk == D_OUTDATED)) {
- kfree(mdev->p_uuid);
- mdev->p_uuid = NULL;
if (get_ldev(mdev)) {
if ((ns.role == R_PRIMARY || ns.peer == R_PRIMARY) &&
mdev->ldev->md.uuid[UI_BITMAP] == 0 && ns.disk >= D_UP_TO_DATE &&
OpenPOWER on IntegriCloud