summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2020-11-10 07:45:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-11 13:25:02 +0100
commit0509a8f64035aa548378105b7f656a0f834206a2 (patch)
tree9246e112a74ced769e13db33588806ee807d19b7
parent28fc3bd2ab22f332072767f52afa0850b69afeb4 (diff)
downloadlinux-stable-0509a8f64035aa548378105b7f656a0f834206a2.tar.gz
linux-stable-0509a8f64035aa548378105b7f656a0f834206a2.tar.bz2
linux-stable-0509a8f64035aa548378105b7f656a0f834206a2.zip
dm writecache: fix the maximum number of arguments
commit 67aa3ec3dbc43d6e34401d9b2a40040ff7bb57af 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: 48debafe4f2f ("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>
-rw-r--r--drivers/md/dm-writecache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c
index 776aaf5951e4..b97c56109c74 100644
--- a/drivers/md/dm-writecache.c
+++ b/drivers/md/dm-writecache.c
@@ -1883,7 +1883,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;