commit | 115c215a7e5753ddf982c8760ce7904dd3fbb8ae | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Apr 22 12:38:11 2020 +0300 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat Apr 25 18:33:54 2020 +0100 |
tree | a27e1dbea3d428225881f87222ff767101ccdd1e | |
parent | 98bcead07951ed76e1e85226c3a54d117e9f8b59 [diff] |
iio: imu: st_lsm6dsx: unlock on error in st_lsm6dsx_shub_write_raw() We need to release a lock if st_lsm6dsx_check_odr() fails, we can't return directly. Fixes: 76551a3c3df1 ("iio: imu: st_lsm6dsx: specify slave odr in slv_odr") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>