Messages in this thread |  | | From | Rajveer Chaudhari <> | | Date | Mon, 9 Mar 2026 20:04:57 +0530 | | Subject | Re: [PATCH 1/4] iio: accel: bmc150: convert to guard(mutex) |
| |
On Mon, Mar 9, 2026 at 7:54 PM Rajveer Chaudhari <rajveer.chaudhari.linux@gmail.com> wrote:
> @@ -1485,7 +1488,7 @@ static int bmc150_accel_buffer_postenable(struct iio_dev *indio_dev) > if (iio_device_get_current_mode(indio_dev) == INDIO_BUFFER_TRIGGERED) > return 0; > > - mutex_lock(&data->mutex); > + guard(mutex)(&data->mutex); > > if (!data->watermark) > goto out;
I am sorry I accidentally forgot to clean up goto and mutex_unlock in bmc150_accel_buffer_postenable(). I will fix it in V2.
Thankyou, Rajveer
|  |