mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
libnvmf: Zero controller data template for I/O controllers
This prevents stack garbage from leaking into the cdata used for the userspace I/O controller in nvmfd(8). Sponsored by: Chelsio Communications
This commit is contained in:
parent
66f360515d
commit
e0649a35a6
@ -425,6 +425,7 @@ nvmf_init_io_controller_data(struct nvmf_qpair *qp, const char *serial,
|
||||
|
||||
uname(&utsname);
|
||||
|
||||
memset(cdata, 0, sizeof(*cdata));
|
||||
_nvmf_init_io_controller_data(qp->nq_cntlid, na->na_params.max_io_qsize,
|
||||
serial, utsname.sysname, utsname.release, subnqn, nn, ioccsz,
|
||||
sizeof(struct nvme_completion), cdata);
|
||||
|
Loading…
Reference in New Issue
Block a user