diff options
author | Hyunwoo Kim <[email protected]> | 2022-11-17 04:59:25 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2023-05-14 06:30:16 +0100 |
commit | 517a281338322ff8293f988771c98aaa7205e457 (patch) | |
tree | 9c0abe0d562ff9f1025ed6ad2b0c627e6b9dba4e /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | a4315e5be7020aac9b24a8151caf4bb85224cd0e (diff) |
media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb()
Since dvb_frontend_detach() is not called in ttusb_dec_exit_dvb(),
which is called when the device is disconnected, dvb_frontend_free()
is not finally called.
This causes a memory leak just by repeatedly plugging and
unplugging the device.
Fix this issue by adding dvb_frontend_detach() to ttusb_dec_exit_dvb().
Link: https://lore.kernel.org/linux-media/[email protected]
Signed-off-by: Hyunwoo Kim <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions