diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2020-07-09 23:28:48 +0530 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2020-07-10 12:48:06 +0200 |
commit | 353b5a91ccf2789b85967d19a8795816b8865562 (patch) | |
tree | da134ec2e6ea41e31d7abd266af606cd0c71a2bd /fsdev/qemu-fsdev.c | |
parent | b6d7e9b66f59ca6ebc6e9b830cd5e7bf849d31cf (diff) | |
download | qemu-353b5a91ccf2789b85967d19a8795816b8865562.zip qemu-353b5a91ccf2789b85967d19a8795816b8865562.tar.gz qemu-353b5a91ccf2789b85967d19a8795816b8865562.tar.bz2 |
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: aee7f3ecd8b7 ("fsdev: Error out when unsupported option is passed")
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <20200709175848.650400-1-ppandit@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'fsdev/qemu-fsdev.c')
-rw-r--r-- | fsdev/qemu-fsdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index a9e069c..3da64e9 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -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 }, }, }; |