[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] 9p: null terminate fs driver options list
From: |
Li Qiang |
Subject: |
Re: [PATCH] 9p: null terminate fs driver options list |
Date: |
Fri, 10 Jul 2020 09:42:09 +0800 |
P J P <ppandit@redhat.com> 于2020年7月10日周五 上午2:01写道:
>
> From: Prasad J Pandit <pjp@fedoraproject.org>
>
> NULL terminate fs driver options' list, validate_opt() looks for
> a null entry to terminate the loop.
>
> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
> ---
> fsdev/qemu-fsdev.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c
> index a9e069c0c7..3da64e9f72 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
> },
> },
> };
> --
> 2.26.2
>
>