IIO: Alignment fixes part 1 - sizes too small as well.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()drivers/ | +6 | 0 replies | |
| 2/2 | iio: adc: ad7923: Fix undersized rx buffer.drivers/ | +3 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Andy Shevchenko |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] IIO: Alignment fixes part 1 - sizes too small as well.
From: Jonathan Cameron <[email protected]>
I finally got around to do a manual audit of all the calls to iio_push_to_buffers_with_timestamp() which has the somewhat odd requirements of:
1. 8 byte alignment of the provided buffer.
2. space for an 8 byte naturally aligned timestamp to be inserted at the end.
As discussed previous in
https://lore.kernel.org/linux-iio/[email protected]/
it is not easy to fix the alignment issue without requiring a bounce buffer (see part 4 of the alignment fixes for a proposal for that where it is absolutely necessary).
In these cases the buffer is neither big enough, nor correctly aligned so fix both issues in one go.
Jonathan Cameron (2):
iio: adc: ad7768-1: Fix too small buffer passed to
iio_push_to_buffers_with_timestamp()
iio: adc: ad7923: Fix undersized rx buffer.
drivers/iio/adc/ad7768-1.c | 8 ++++++-- drivers/iio/adc/ad7923.c | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.31.1