projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ce422
)
drbd: Do not free p_uuid early, this is done in the exit code of the receiver
author
Philipp Reisner
<philipp.reisner@linbit.com>
Thu, 20 May 2010 12:45:07 +0000
(14:45 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 21 May 2010 19:12:01 +0000
(21:12 +0200)
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>
drivers/block/drbd/drbd_main.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_main.c
b/drivers/block/drbd/drbd_main.c
index a949fc45f7ef44e3f07e140529bac539f0ec6f58..be2d2da9cdba41db2c09f8bea3b1d8df0474f24e 100644
(file)
--- 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 &&