From c7ac4db6b55203a04d567ff7bd3b3ca7cb4816f3 Mon Sep 17 00:00:00 2001 From: Shantanu Jain Date: Wed, 10 May 2017 15:02:58 +0530 Subject: [PATCH] input: misc: fix error path for hbtp touch driver Fix error path for hbtp touch driver where error variable is not given proper error code while bailing out from the function. Change-Id: I56e2654ecffb021a60dd07ea5b5afe45a70a1c85 Signed-off-by: Shantanu Jain --- drivers/input/misc/hbtp_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/hbtp_input.c b/drivers/input/misc/hbtp_input.c index 0362095d4c38..56f2732334db 100644 --- a/drivers/input/misc/hbtp_input.c +++ b/drivers/input/misc/hbtp_input.c @@ -1479,6 +1479,7 @@ static int __init hbtp_init(void) sensor_kobject = kobject_create_and_add("hbtpsensor", kernel_kobj); if (!sensor_kobject) { pr_err("%s: Could not create hbtpsensor kobject\n", __func__); + error = -ENOMEM; goto err_kobject_create; }