diff options
author | Anton Vasilyev <vasilyev@ispras.ru> | 2018-07-27 07:52:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-02 19:14:25 -0400 |
commit | 61e641f36ed81ae473177c085f0bfd83ad3b55ed (patch) | |
tree | e9fa32c30d1d74ee69ddbfe7a26e4a703921271b /drivers/media/usb/em28xx/em28xx-core.c | |
parent | b9f0f653ea2c214933b16884bd40baf26ff61895 (diff) | |
download | linux-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