]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iio:imu:bmi160: Fix too large a buffer.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Sep 2020 11:27:38 +0000 (12:27 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:48:05 +0000 (16:48 +0100)
commit23d5cbbd9912b278ed1d57c41b3ac7ce081d3b32
tree54e87f834c257a516bde79c23f4894770ac09faa
parent0f2c468158c7f43621bd71145a05a683a705fd61
iio:imu:bmi160: Fix too large a buffer.

BugLink: https://bugs.launchpad.net/bugs/1910111
commit dc7de42d6b50a07b37feeba4c6b5136290fcee81 upstream.

The comment implies this device has 3 sensor types, but it only
has an accelerometer and a gyroscope (both 3D).  As such the
buffer does not need to be as long as stated.

Note I've separated this from the following patch which fixes
the alignment for passing to iio_push_to_buffers_with_timestamp()
as they are different issues even if they affect the same line
of code.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: Daniel Baluta <daniel.baluta@oss.nxp.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200920112742.170751-5-jic23@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/iio/imu/bmi160/bmi160_core.c