+ dm-table-split_args-handle-no-input.patch added to -mm tree

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

 



The patch titled

     dm table split_args: handle no input

has been added to the -mm tree.  Its filename is

     dm-table-split_args-handle-no-input.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: dm table split_args: handle no input
From: David Teigland <teigland@xxxxxxxxxx>


Return sense if dm_split_args is called with a NULL input parameter.

Signed-off-by: David Teigland <teigland@xxxxxxxxxx>
Signed-off-by: Alasdair G Kergon <agk@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/md/dm-table.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN drivers/md/dm-table.c~dm-table-split_args-handle-no-input drivers/md/dm-table.c
--- a/drivers/md/dm-table.c~dm-table-split_args-handle-no-input
+++ a/drivers/md/dm-table.c
@@ -590,6 +590,12 @@ int dm_split_args(int *argc, char ***arg
 	unsigned array_size = 0;
 
 	*argc = 0;
+
+	if (!input) {
+		*argvp = NULL;
+		return 0;
+	}
+
 	argv = realloc_argv(&array_size, argv);
 	if (!argv)
 		return -ENOMEM;
_

Patches currently in -mm which might be from teigland@xxxxxxxxxx are

git-gfs2.patch
dm-table-split_args-handle-no-input.patch
dm-create-error-table.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux