aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-dev.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-12-10 15:29:22 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 12:18:57 -0200
commiteb83a5176801d53f9f78eff8c0bf03e627110206 (patch)
tree4c5968691fc4672acf9624cd271abf14f96795ad /drivers/media/v4l2-core/v4l2-dev.c
parent[media] media: don't try to empty links list in media_entity_cleanup() (diff)
downloadlinux-eb83a5176801d53f9f78eff8c0bf03e627110206.tar.gz
linux-eb83a5176801d53f9f78eff8c0bf03e627110206.zip
[media] media-entity: fix backlink removal on __media_entity_remove_link()
The logic is testing if num_links==0 at the wrong place. Due to that, a backlink may be kept without removal, causing KASAN to complain about usage after free during either entity or link removal. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-dev.c')
0 files changed, 0 insertions, 0 deletions