Searched hist:"517 a281338322ff8293f988771c98aaa7205e457" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/usb/ttusb-dec/ |
H A D | ttusb_dec.c | diff 517a281338322ff8293f988771c98aaa7205e457 Wed Nov 16 22:59:25 CST 2022 Hyunwoo Kim <imv4bel@gmail.com> 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/20221117045925.14297-5-imv4bel@gmail.com Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
|