diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 17:25:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 17:25:44 +0200 |
commit | af52739b922f656eb1f39016fabaabe4baeda2e2 (patch) | |
tree | 79a7aa810d0493cd0cf4adebac26d37f12e8b545 /drivers/iio/humidity/am2315.c | |
parent | staging/lustre: Update FID documentation link. (diff) | |
parent | Linux 4.7-rc4 (diff) | |
download | linux-af52739b922f656eb1f39016fabaabe4baeda2e2.tar.xz linux-af52739b922f656eb1f39016fabaabe4baeda2e2.zip |
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in
drivers/iio/industrialio-trigger.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/humidity/am2315.c')
-rw-r--r-- | drivers/iio/humidity/am2315.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c index 8de39bd349f9..3e200f69e886 100644 --- a/drivers/iio/humidity/am2315.c +++ b/drivers/iio/humidity/am2315.c @@ -165,10 +165,8 @@ static irqreturn_t am2315_trigger_handler(int irq, void *p) struct am2315_sensor_data sensor_data; ret = am2315_read_data(data, &sensor_data); - if (ret < 0) { - mutex_unlock(&data->lock); + if (ret < 0) goto err; - } mutex_lock(&data->lock); if (*(indio_dev->active_scan_mask) == AM2315_ALL_CHANNEL_MASK) { |