From 46521aa2ac423572070023225646c723786841d4 Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Tue, 13 Feb 2018 18:27:04 +0900 Subject: [PATCH] [COMMON] fimc-is2: fixed a prevent defect(CID214802) - resource leak : CID 214802 Change-Id: I3837c7f092f1e235b5a5e27dbc8b4a493c7e3299 Signed-off-by: Eunyoung Lee --- .../module_framework/actuator/fimc-is-actuator-dw9780.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9780.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9780.c index 6c210a001717..08ce96dc007a 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9780.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9780.c @@ -573,10 +573,10 @@ static int sensor_dw9780_actuator_probe(struct i2c_client *client, return ret; p_err: - if (!actuator) + if (actuator) kzfree(actuator); - if (!subdev_actuator) + if (subdev_actuator) kzfree(subdev_actuator); return ret; -- 2.20.1