]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/micron: fix freed memory dereference.
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 8 Nov 2022 14:41:14 +0000 (15:41 +0100)
committerDaniel Wagner <dwagner@suse.de>
Wed, 9 Nov 2022 09:38:46 +0000 (10:38 +0100)
commitdafa92f94c5dae0bdf795ba71ed5d607eaa5253a
tree24364213ba79d4b05f3e7198627f11a978b75aff
parent3bc7a50707205dd8f6bdc9834fd3d958c11f3eb5
plugins/micron: fix freed memory dereference.

dev_close() is already called after the jump to "out".
Calling it 2 times against the same pointer is unsafe because
it will dereference freed memory.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
plugins/micron/micron-nvme.c