[PATCH 21/34] FIX: Initialize subarray variable in reshape_array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



subarray variable was not initialized in reshape_array()

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Grow.c b/Grow.c
index dae9bbf..1c10889 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1616,7 +1616,7 @@ static int reshape_array(char *container, int fd, char *devname,
 	struct mdu_array_info_s array;
 	char *c;
 	int rv = 0;
-	char *subarray = NULL;
+	char *subarray = strchr(info->text_version+1, '/') + 1;
 
 	int *fdlist;
 	unsigned long long *offsets;

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux