summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx-core.c
diff options
context:
space:
mode:
authorAnton Vasilyev <vasilyev@ispras.ru>2018-07-27 07:52:20 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-02 19:14:25 -0400
commit61e641f36ed81ae473177c085f0bfd83ad3b55ed (patch)
treee9fa32c30d1d74ee69ddbfe7a26e4a703921271b /drivers/media/usb/em28xx/em28xx-core.c
parentb9f0f653ea2c214933b16884bd40baf26ff61895 (diff)
downloadlinux-61e641f36ed81ae473177c085f0bfd83ad3b55ed.tar.bz2
media: davinci: vpif_display: Mix memory leak on probe error path
If vpif_probe() fails on v4l2_device_register() then memory allocated at initialize_vpif() for global vpif_obj.dev[i] become unreleased. The patch adds deallocation of vpif_obj.dev[i] on the error path and removes duplicated check on platform_data presence. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-core.c')
0 files changed, 0 insertions, 0 deletions