]> asedeno.scripts.mit.edu Git - linux.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)
commit713f871b30a66dc4daff4d17b760c9916aaaf2e1
treec219a3e3f260701a497ac874b6c5571e8fb43c2d
parent36909b552d0ea960732bc1450186f3e738bc41fc
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