hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/i2c/ov772x.c
....@@ -1397,7 +1397,7 @@
13971397 priv->subdev.ctrl_handler = &priv->hdl;
13981398 if (priv->hdl.error) {
13991399 ret = priv->hdl.error;
1400
- goto error_mutex_destroy;
1400
+ goto error_ctrl_free;
14011401 }
14021402
14031403 priv->clk = clk_get(&client->dev, NULL);
....@@ -1446,7 +1446,6 @@
14461446 clk_put(priv->clk);
14471447 error_ctrl_free:
14481448 v4l2_ctrl_handler_free(&priv->hdl);
1449
-error_mutex_destroy:
14501449 mutex_destroy(&priv->lock);
14511450
14521451 return ret;