Skip to content

Commit 05b9eff

Browse files
Mikulas Patockagregkh
authored andcommitted
dm writecache: fix the maximum number of arguments
commit 67aa3ec upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1b86b92 commit 05b9eff

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)