]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Fix invalid memory access in show_registers
authorMartin Joerg <martin.joerg@gmail.com>
Wed, 8 Mar 2023 11:52:29 +0000 (12:52 +0100)
committerDaniel Wagner <wagi@monom.org>
Wed, 8 Mar 2023 16:31:25 +0000 (17:31 +0100)
commitc5099ec4a7224940e416eebdf8c3366ade2d8b70
treed80ed701215466aabf786e8df1e48d577dc70492
parent84fc56eb00eb75871d3d4d6e5d24fe6355c9f373
nvme: Fix invalid memory access in show_registers

In case nvme_get_property fails, nvme_get_properties frees the allocated memory.
The memory should not be accessed and freed again in show_registers.

Signed-off-by: Martin Joerg <martin.joerg@gmail.com>
nvme.c