]> www.infradead.org Git - users/hch/misc.git/commit
iio: accel: hid: Use iio_push_to_buffers_with_ts() to provide length for runtime...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Apr 2025 10:34:34 +0000 (11:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:05 +0000 (19:10 +0100)
commit1a7a53c137a140eb849d210463b43a943e4d35c8
tree6573f8233bcfc2233ce6c6a742c8b162a6a45f4b
parent0b402928f160be56f3ba61c9343b6432b424fea9
iio: accel: hid: Use iio_push_to_buffers_with_ts() to provide length for runtime checks.

This new function allows us to perform debug checks in the helper to ensure
that the overrun does not occur. For this case, the length being provided
is already passed into the caller function so reuse that.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-12-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/hid-sensor-accel-3d.c