]> git.baikalelectronics.ru Git - kernel.git/commit
media: mc-device.c: fix memleak in media_device_register_entity
authorzhengbin <zhengbin13@huawei.com>
Mon, 19 Aug 2019 01:51:30 +0000 (22:51 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 15:26:35 +0000 (12:26 -0300)
commit8828c440f784e91b75a0e533455ed8c2aa45daf4
treec219a3e3f260701a497ac874b6c5571e8fb43c2d
parentb4769b3ce54df0f69e5286815ef31e14d56e198b
media: mc-device.c: fix memleak in media_device_register_entity

In media_device_register_entity, if media_graph_walk_init fails,
need to free the previously memory.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/mc/mc-device.c