From 63d1082c62b22c2e7c663c0a5c398cc85b5c20ac Mon Sep 17 00:00:00 2001 From: Venkata Prahlad Valluru Date: Tue, 13 Mar 2018 18:54:30 +0530 Subject: [PATCH] input: touchscreen: synaptics_dsx: Fix uninitialized variable usage Initialize variables that are passed by reference, so that they can be used safely afterwards, irrespective of the called function actions. Change-Id: Ib95f3aa3077d6ef7aaaabcfc6c882790b6406793 Signed-off-by: Venkata Prahlad Valluru --- drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_core.c b/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_core.c index a9a835de9a1a..6f6cb35d90da 100644 --- a/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_core.c +++ b/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_core.c @@ -472,7 +472,7 @@ static int synaptics_i2c_change_pipe_owner( struct synaptics_rmi4_data *rmi4_data, enum subsystem subsystem) { /*scm call descriptor */ - struct scm_desc desc; + struct scm_desc desc = {0}; struct i2c_client *i2c = to_i2c_client(rmi4_data->pdev->dev.parent); int ret = 0;