|
|
a3470f |
From 8e353f6f4e919541f8830de835da13c805db66a0 Mon Sep 17 00:00:00 2001
|
|
|
a3470f |
From: N Balachandran <nbalacha@redhat.com>
|
|
|
a3470f |
Date: Fri, 5 Jan 2018 08:55:09 +0530
|
|
|
a3470f |
Subject: [PATCH 134/139] cli: Fixed a use_after_free
|
|
|
a3470f |
|
|
|
a3470f |
gf_event in cli_cmd_volume_create_cbk was accessing
|
|
|
a3470f |
memory that had already been freed.
|
|
|
a3470f |
|
|
|
a3470f |
>upstream mainline patch : https://review.gluster.org/#/c/19136/
|
|
|
a3470f |
|
|
|
a3470f |
> Change-Id: I447c939fa9b31e18819a62c3b356c14cca390787
|
|
|
a3470f |
> BUG: 1530910
|
|
|
a3470f |
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
|
|
|
a3470f |
(cherry picked from commit fa903173540df5b82c295a8f7b24848098e49a41)
|
|
|
a3470f |
|
|
|
a3470f |
Change-Id: I1361b3bfecbd5771f5710b08466b913d807cb60c
|
|
|
a3470f |
BUG: 1531041
|
|
|
a3470f |
Signed-off-by: N Balachandran <nbalacha@redhat.com>
|
|
|
a3470f |
Reviewed-on: https://code.engineering.redhat.com/gerrit/126957
|
|
|
a3470f |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
a3470f |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
a3470f |
---
|
|
|
a3470f |
cli/src/cli-cmd-volume.c | 3 ++-
|
|
|
a3470f |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
a3470f |
|
|
|
a3470f |
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
|
|
|
a3470f |
index 7110145..2639afa 100644
|
|
|
a3470f |
--- a/cli/src/cli-cmd-volume.c
|
|
|
a3470f |
+++ b/cli/src/cli-cmd-volume.c
|
|
|
a3470f |
@@ -253,11 +253,12 @@ out:
|
|
|
a3470f |
cli_out ("Volume create failed");
|
|
|
a3470f |
}
|
|
|
a3470f |
|
|
|
a3470f |
- CLI_STACK_DESTROY (frame);
|
|
|
a3470f |
if (ret == 0) {
|
|
|
a3470f |
gf_event (EVENT_VOLUME_CREATE, "name=%s;bricks=%s",
|
|
|
a3470f |
(char *)words[2], bricks);
|
|
|
a3470f |
}
|
|
|
a3470f |
+
|
|
|
a3470f |
+ CLI_STACK_DESTROY (frame);
|
|
|
a3470f |
return ret;
|
|
|
a3470f |
}
|
|
|
a3470f |
|
|
|
a3470f |
--
|
|
|
a3470f |
1.8.3.1
|
|
|
a3470f |
|