Skip to content

Commit 67aa3ec

Browse files
Mikulas Patockasnitm
authored andcommitted
dm writecache: fix the maximum number of arguments
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: 48debaf ("dm: add writecache target") Cc: stable@vger.kernel.org # v4.18+ Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent e5d41cb commit 67aa3ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/md/dm-writecache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ static int writecache_ctr(struct dm_target *ti, unsigned argc, char **argv)
20412041
struct wc_memory_superblock s;
20422042

20432043
static struct dm_arg _args[] = {
2044-
{0, 10, "Invalid number of feature args"},
2044+
{0, 16, "Invalid number of feature args"},
20452045
};
20462046

20472047
as.argc = argc;

0 commit comments

Comments
 (0)