dm writecache: fix the maximum number of arguments
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 10 Nov 2020 12:45:13 +0000 (07:45 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 17 Nov 2020 15:45:06 +0000 (10:45 -0500)
Advance the maximum number of arguments to 16.
This fixes issue where certain operations, combined with table
configured args, exceed 10 arguments.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 48debafe4f2f ("dm: add writecache target")
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c

index 1ea923af47c6182015548bb49431ad2bc99ca6db..7d277de26b3a512452c92abb081fd12123eeca4d 100644 (file)
@@ -2041,7 +2041,7 @@ static int writecache_ctr(struct dm_target *ti, unsigned argc, char **argv)
        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;