]> git.baikalelectronics.ru Git - kernel.git/commit
media: saa7146: fix error logic at saa7146_vv_init()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 13:52:28 +0000 (14:52 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 14:09:14 +0000 (15:09 +0100)
commit9d46945bab1d639b323e7d0cc50978760b80d901
tree08fb0cb41fb71b1addbf70a5b00a1eadeaaa7692
parent02c3879500cda53762e614e57a021d4bd7c52b24
media: saa7146: fix error logic at saa7146_vv_init()

As the first thing this function does is to call
v4l2_device_register(), it should call v4l2_device_unregister()
if an error occurs, the same way as done at saa7146_vv_release().

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/saa7146/saa7146_fops.c