]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: fix 'nvme list -o json' segfault
authorMartin George <marting@netapp.com>
Mon, 21 Feb 2022 10:17:24 +0000 (15:47 +0530)
committerMartin George <marting@netapp.com>
Mon, 21 Feb 2022 10:17:24 +0000 (15:47 +0530)
commit332893acfa5f0e51aeca43b9e4151c960220caab
tree4edda5741751c4d366f13a81522cd6fc49e82866
parent512b14d1294e03000919bf8519decd5c057a7f6d
nvme-print: fix 'nvme list -o json' segfault

After the recent upgrade to libnvme, 'nvme list -o json' segfaults
due to incorrect json object type passed here. So fix this by passing
the appropriate json object type and invoking it outside the
nvme_for_each_host loop.

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