mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 14:46:47 +07:00
[media] em28xx: Fix memory leak on driver defered resource release
When the device is physically unplugged but there are still open file handles, resource release is defered until last opened handle is closed. This patch fixes a missing em28xx_fh struct release. Tested by compilation only. Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
61282daf50
commit
dedb8cb1d6
@ -2260,6 +2260,7 @@ static int em28xx_v4l2_close(struct file *filp)
|
||||
em28xx_release_resources(dev);
|
||||
kfree(dev->alt_max_pkt_size);
|
||||
kfree(dev);
|
||||
kfree(fh);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user