]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: i2c: adv748x: Fix cleanup jump on chip identification
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Wed, 7 Feb 2018 21:11:35 +0000 (16:11 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 15:30:15 +0000 (10:30 -0500)
The error handling for the adv748x_identify_chip() call erroneously
jumps to the err_cleanup_clients label before the clients have been
established.

Correct this by jumping to the next (and correct) label in the cleanup
code: err_cleanup_dt.

Fixes: 3e89586a64df ("media: i2c: adv748x: add adv748x driver")
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv748x/adv748x-core.c

index fd92c9e4b519d2c56305e1ebeb9b8118ee868520..accaa70134fb3ba3a5a5e34b00a3ed3463c4cecf 100644 (file)
@@ -715,7 +715,7 @@ static int adv748x_probe(struct i2c_client *client,
        ret = adv748x_identify_chip(state);
        if (ret) {
                adv_err(state, "Failed to identify chip");
-               goto err_cleanup_clients;
+               goto err_cleanup_dt;
        }
 
        /* Configure remaining pages as I2C clients with regmap access */