]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: remove double free in persistent-event-log
authorFrancis Pravin <francis.p@samsung.com>
Fri, 10 May 2024 09:46:36 +0000 (15:16 +0530)
committerDaniel Wagner <wagi@monom.org>
Fri, 10 May 2024 11:19:58 +0000 (13:19 +0200)
commit3d53db94f0c522773bb83bf0119e9d19cc9c7a3d
tree5955c7d7bd027cf7fd822bcba40d286909bc8d8b
parent7a35395e9c8c507e0ae291e9676d987ef7c781de
nvme: remove double free in persistent-event-log

The pevent_collected structure uses the buffer address which is allocated
using nvme_alloc_huge(). So, pevent_collected and mh.p has same address.
Hence, remove _cleanup_free_ from pevent_collected to prevent double free.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
Signed-off-by: Sathyavathi M <sathya.m@samsung.com>
nvme.c