diff options
| author | Peilin Ye <[email protected]> | 2020-12-11 09:30:39 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-03-22 23:36:39 +0100 |
| commit | bf9a40ae8d722f281a2721779595d6df1c33a0bf (patch) | |
| tree | 2454e74933c23f6ebbcbf0705464cf0b299bdfbe /tools/perf/scripts/python | |
| parent | 23817e5c4bb8ac28cd6bbf463d07fb3120a08660 (diff) | |
media: dvbdev: Fix memory leak in dvb_media_device_free()
dvb_media_device_free() is leaking memory. Free `dvbdev->adapter->conn`
before setting it to NULL, as documented in include/media/media-device.h:
"The media_entity instance itself must be freed explicitly by the driver
if required."
Link: https://syzkaller.appspot.com/bug?id=9bbe4b842c98f0ed05c5eed77a226e9de33bf298
Link: https://lore.kernel.org/linux-media/[email protected]
Cc: [email protected]
Fixes: 0230d60e4661 ("[media] dvbdev: Add RF connector if needed")
Reported-by: [email protected]
Signed-off-by: Peilin Ye <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions