]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme zns: segmentation fault in cmd "nvme zns zone-mgmt-send"
authorAravind Ramesh <aravind.ramesh@wdc.com>
Mon, 29 Jun 2020 04:49:29 +0000 (10:19 +0530)
committerKeith Busch <kbusch@kernel.org>
Tue, 30 Jun 2020 17:30:01 +0000 (11:30 -0600)
commit26b6ca9e2e7f4667c9c1e59b3b43f3b41841e015
tree7aba718c19254067bf0613cbd27952e7ad9e7da4
parent5eb44f4c872741e11d0acd861614425efc2a228a
nvme zns: segmentation fault in cmd "nvme zns zone-mgmt-send"

zone_mgmt_send function calls strlen() on a null ptr causing the
segmentation fault. Check the pointer instead of len.

Signed-off-by: Aravind Ramesh <Aravind.Ramesh@wdc.com>
plugins/zns/zns.c