Re: [PATCH 1/2] vfio/display: Fix potential memleak of edid info

2024-06-30 Thread Duan, Zhenzhong
Hi, On 6/29/2024 8:15 PM, Marc-André Lureau wrote: Hi On Fri, Jun 28, 2024 at 1:32 PM Zhenzhong Duan wrote: EDID related device region info is leaked in three paths: 1. In vfio_get_dev_region_info(), when edid info isn't find, the last device region info is leaked. 2. In

Re: [PATCH 1/2] vfio/display: Fix potential memleak of edid info

2024-06-29 Thread Marc-André Lureau
Hi On Fri, Jun 28, 2024 at 1:32 PM Zhenzhong Duan wrote: > EDID related device region info is leaked in three paths: > 1. In vfio_get_dev_region_info(), when edid info isn't find, the last > device region info is leaked. > 2. In vfio_display_edid_init() error path, edid info is leaked. > 3. In

[PATCH 1/2] vfio/display: Fix potential memleak of edid info

2024-06-28 Thread Zhenzhong Duan
EDID related device region info is leaked in three paths: 1. In vfio_get_dev_region_info(), when edid info isn't find, the last device region info is leaked. 2. In vfio_display_edid_init() error path, edid info is leaked. 3. In VFIODisplay destroying path, edid info is leaked. Fixes: 08479114b0de