mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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>
This commit is contained in:
parent
edfafbd82f
commit
838a65c1d6
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, void *data,
|
|||
int len, int64_t timestamp)
|
||||
{
|
||||
dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n");
|
||||
iio_push_to_buffers_with_timestamp(indio_dev, data, timestamp);
|
||||
iio_push_to_buffers_with_ts(indio_dev, data, len, timestamp);
|
||||
}
|
||||
|
||||
/* Callback handler to send event after all samples are received and captured */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue