lkml.org 
[lkml]   [2020]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 20/39] dm writecache: fix the maximum number of arguments
    Date
    From: Mikulas Patocka <mpatocka@redhat.com>

    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>

    ---
    drivers/md/dm-writecache.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/md/dm-writecache.c
    +++ b/drivers/md/dm-writecache.c
    @@ -1883,7 +1883,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;

    \
     
     \ /
      Last update: 2020-12-10 18:04    [W:3.339 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site