]> git.baikalelectronics.ru Git - kernel.git/commit
media: rga: fix possible memory leak in rga_probe
authorHangyu Hua <hbh25y@gmail.com>
Thu, 24 Mar 2022 08:37:24 +0000 (09:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:19 +0000 (11:02 +0200)
commitee3c802e3e4519770f51dbaa01a2347883cd8cb7
treeb5a34554b7a5b5d9faf3c2ba606912f9df816e2b
parentd928bdadeb3366d3bc6e3fcc93b746d99293c554
media: rga: fix possible memory leak in rga_probe

rga->m2m_dev needs to be freed when rga_probe fails.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rga/rga.c