]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: tda1997: Fix an error handling path 'tda1997x_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 8 May 2018 06:14:15 +0000 (02:14 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 11 May 2018 15:36:09 +0000 (11:36 -0400)
commit1855722e1c8bed35ebba206035d2b9daf9a6d67f
tree8c18439e13320500c4195fa3a6215ebb542ebb62
parent3d05b639306295777a22a0ae93fd675891c0db13
media: i2c: tda1997: Fix an error handling path 'tda1997x_probe()'

If 'media_entity_pads_init()' fails, we must free the resources allocated
by 'v4l2_ctrl_handler_init()', as already done in the previous error
handling path.

'goto' the right label to fix it.

Fixes: dc0be6230681 ("media: i2c: Add TDA1997x HDMI receiver driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tda1997x.c