diff options
| author | Shantanu Jain <shjain@codeaurora.org> | 2017-05-10 15:02:58 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-11 03:52:50 -0700 |
| commit | c7ac4db6b55203a04d567ff7bd3b3ca7cb4816f3 (patch) | |
| tree | ad19e6ac789e0c1e87de0a0f3876464344757e84 | |
| parent | 3a360dc1730143b82571c3336e6b7469b6c2da91 (diff) | |
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 <shjain@codeaurora.org>
| -rw-r--r-- | drivers/input/misc/hbtp_input.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
