]> git.baikalelectronics.ru Git - kernel.git/commit
media: dw100: Fix an error handling path in dw100_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 22 Aug 2022 09:40:43 +0000 (11:40 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 05:35:47 +0000 (07:35 +0200)
commit709bed946caa0f0bffb9445709a4a4a6db552060
tree3ac0d2983c1b532e46f0111720483bdbeb2d3ae4
parent00350885c474b9b3cd3d5e481d6c588f423bba17
media: dw100: Fix an error handling path in dw100_probe()

After a successful call to media_device_init() it is safer to call
media_device_cleanup().

Add the missing call in the error handling path of the probe, as already
done in the remove function.

[hverkuil: fixed a typo in the commit log]

Fixes: bd090d4d995a ("media: dw100: Add i.MX8MP dw100 dewarper driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/dw100/dw100.c