]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: fix segfault in nvme telemetry-log error handling
authorMartin George <marting@netapp.com>
Tue, 1 Mar 2022 11:52:36 +0000 (17:22 +0530)
committerMartin George <marting@netapp.com>
Tue, 1 Mar 2022 11:52:36 +0000 (17:22 +0530)
commit7e89f04968b563134f3750128b9465daa3b87e02
tree84e942acd22dd08f1cc543314bd6ce34eb5fc4f9
parent48b0074929e87d055c3b58438ca8d7c4276add45
nvme: fix segfault in nvme telemetry-log error handling

After the upgrade to libnvme, the nvme telemetry-log command
segfaults for error scenarios as shown below:

NVMe status: Invalid Log Page: The log page indicated is invalid(0x4009)
Failed to acquire telemetry log 16393!
Segmentation fault (core dumped)

Freeing the telemetry log page header for error scenarios is already
handled in the libnvme. So avoid freeing this again here, which led to
this segfault.

Signed-off-by: Martin George <marting@netapp.com>
nvme.c