Add missing NULL terminating element in fsdev option lists. Never

crashed QEMU by pure luck.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEtIKLr5QxQM7yo0kQcdTV5YIvc9YFAl8IlpkACgkQcdTV5YIv
 c9YVNxAAt+quJl4gNQWpI743+FuK0Nl7En4OqTCBahEz8MLc8fPtdtzbB6LxnHim
 L0xMMI/J3fC/Gu5EiagkvN9oEMM0D4G2CjtXnLMQG+JGDE84Q1o37UGdL91mTYLi
 tR5R3YGqhJNt25uRZ5UgI/0pBrqZ2H7t5iAZpcw7Ylxtaild2f4OhCrT+9I3w2R1
 h8lfQTptMIYSsfecFfEpJT1oYcEuye2lFXC2OG3zRiI3Y6St0kR8jZJ3Ap2v9o8m
 EXKCiQMktQ1tHxpWT9IUxDTh90mnBbT9vIUYNWnBm08fsomT4M02Yx9pwhmPebSU
 yWhN2QY0FDh8Q+8s/7cafGMWeefSC6t9FpGR+vVQUmIDMk3xSD9U5t07GEX/s/gt
 hDSaJ9+0GcQsXY9cqtMFwvcIKMjH8dqV8SIE419JkrN0KqZ+gKwnEZwFZYVA2/OP
 /AdL7ksWeiTmFD0BxMAGbNfRMr/kX8xhaVhQFQnF09lTOB0qUr1Kzv+1zrDCLGIV
 DRL4427T106RKT75mH5jnA2OApZgUKYMY7tH8Nr6JzM4y19ugmnP5L1sNoPtJhfF
 ya1ocGg3ooKQmpmkqILy2v8+WcnyN3SM9fTxAnJRWNskjRXz3m7svrbyEct4/JQn
 67Mr6WncC00OYVQnI7P0WTN9hKVWwZUS2PilrUzPzjVylObkzd8=
 =YPSV
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/gkurz/tags/9p-fix-2020-07-10' into staging

Add missing NULL terminating element in fsdev option lists. Never
crashed QEMU by pure luck.

# gpg: Signature made Fri 10 Jul 2020 17:26:01 BST
# gpg:                using RSA key B4828BAF943140CEF2A3491071D4D5E5822F73D6
# gpg: Good signature from "Greg Kurz <groug@kaod.org>" [full]
# gpg:                 aka "Gregory Kurz <gregory.kurz@free.fr>" [full]
# gpg:                 aka "[jpeg image of size 3330]" [full]
# Primary key fingerprint: B482 8BAF 9431 40CE F2A3  4910 71D4 D5E5 822F 73D6

* remotes/gkurz/tags/9p-fix-2020-07-10:
  9p: null terminate fs driver options list

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Peter Maydell 2020-07-11 15:11:30 +01:00
commit d4a6bab1ec
1 changed files with 3 additions and 0 deletions

View File

@ -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
},
},
};