summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-14 10:21:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-17 13:04:51 +0300
commit4f2bf4fe6c0d4100763753fb7bb2635ee96825a6 (patch)
tree2b34913d8c148b89aa973ab753fc5c8da24cbbd6 /COPYING
parentaf09862cb5661cfdedd114ae50c7aaed94bd185a (diff)
downloadlinux-4f2bf4fe6c0d4100763753fb7bb2635ee96825a6.tar.xz
media: vidtv: move kfree(dvb) to vidtv_bridge_dev_release()
commit 112024a3b6dcfc62ec36ea0cf58b897f2ce54c59 upstream. Adding kfree(dvb) to vidtv_bridge_remove() will remove the memory too soon: if an application still has an open filehandle to the device when the driver is unloaded, then when that filehandle is closed, a use-after-free access takes place to the freed memory. Move the kfree(dvb) to vidtv_bridge_dev_release() instead. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 76e21bb8be4f ("media: vidtv: Fix memory leak in remove") Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions