linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.44k stars 647 forks source link

nvme: remove double free in persistent-event-log #2339

Closed francispravin5 closed 3 months ago

francispravin5 commented 3 months ago

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, removing _cleanupfree from pevent_collected to prevent double free.

igaw commented 3 months ago

Thanks!