[PATCH] dm writecache: fix the maximum number of arguments

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

 



Advance the maximum number of arguments to 16.

This should fix https://bugzilla.redhat.com/show_bug.cgi?id=1895117

Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>
Fixes: 48debafe4f2f ("dm: add writecache target")
Cc: stable@xxxxxxxxxxxxxxx	# v4.18+

---
 drivers/md/dm-writecache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/md/dm-writecache.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-writecache.c	2020-10-29 12:20:47.000000000 +0100
+++ linux-2.6/drivers/md/dm-writecache.c	2020-11-10 11:09:47.000000000 +0100
@@ -2041,7 +2041,7 @@ static int writecache_ctr(struct dm_targ
 	struct wc_memory_superblock s;
 
 	static struct dm_arg _args[] = {
-		{0, 10, "Invalid number of feature args"},
+		{0, 16, "Invalid number of feature args"},
 	};
 
 	as.argc = argc;

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux