diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-10 23:03:44 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-10 23:03:43 -0700 |
| commit | 277412a0e7bef5a863d3e6888f542b976eba6edb (patch) | |
| tree | fd8eaa8d03798871124382d26a123b3fa9f1376c /drivers/input | |
| parent | a8b420d53b281553131d0c670f809a12015e443b (diff) | |
| parent | 3ffb190bb8905cb69285943ebb8da7600d643ee1 (diff) | |
Merge "input: misc: fix error path for hbtp touch screen driver"
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/misc/hbtp_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/misc/hbtp_input.c b/drivers/input/misc/hbtp_input.c index 599605a3cf76..0362095d4c38 100644 --- a/drivers/input/misc/hbtp_input.c +++ b/drivers/input/misc/hbtp_input.c @@ -1452,8 +1452,10 @@ static int __init hbtp_init(void) hbtp->sensor_data = kzalloc(sizeof(struct hbtp_sensor_data), GFP_KERNEL); - if (!hbtp->sensor_data) + if (!hbtp->sensor_data) { + error = -ENOMEM; goto err_sensordata; + } mutex_init(&hbtp->mutex); mutex_init(&hbtp->sensormutex); |
