mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
media: vimc: Remove redundant free
Commit 4a29b70907
("[media] vimc: Subdevices as modules") removes
vimc allocation from vimc_probe(), so corresponding deallocation
on the error path tries to free static memory.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
730129e9ba
commit
b9f0f653ea
@ -328,7 +328,6 @@ static int vimc_probe(struct platform_device *pdev)
|
||||
if (ret) {
|
||||
media_device_cleanup(&vimc->mdev);
|
||||
vimc_rm_subdevs(vimc);
|
||||
kfree(vimc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user