Commit 353b5a91 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Greg Kurz
Browse files

9p: null terminate fs driver options list



NULL terminate fs driver options' list, validate_opt() looks for
a null entry to terminate the loop.

Fixes: aee7f3ec ("fsdev: Error out when unsupported option is passed")
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: default avatarLi Qiang <liq3ea@gmail.com>
Message-Id: <20200709175848.650400-1-ppandit@redhat.com>
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent b6d7e9b6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ static FsDriverTable FsDrivers[] = {
            "throttling.iops-read-max-length",
            "throttling.iops-write-max-length",
            "throttling.iops-size",
            NULL
        },
    },
    {
@@ -85,6 +86,7 @@ static FsDriverTable FsDrivers[] = {
        .ops = &synth_ops,
        .opts = (const char * []) {
            COMMON_FS_DRIVER_OPTIONS,
            NULL
        },
    },
    {
@@ -95,6 +97,7 @@ static FsDriverTable FsDrivers[] = {
            "socket",
            "sock_fd",
            "writeout",
            NULL
        },
    },
};