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

Mikulas Patocka mpatocka at redhat.com
Tue Nov 10 12:45:13 UTC 2020


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 at redhat.com>
Fixes: 48debafe4f2f ("dm: add writecache target")
Cc: stable at vger.kernel.org	# 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;




More information about the dm-devel mailing list