mbox series

[0/2] iio: small fixes and improvements

Message ID 20250218-dev-iio-misc-v1-0-bf72b20a1eb8@analog.com (mailing list archive)
Headers show
Series iio: small fixes and improvements | expand

Message

Nuno Sá via B4 Relay Feb. 18, 2025, 10:31 a.m. UTC
The first patch is a fix for the backend code dealing with
direct_register_access. We need to properly terminate the received
string before passing it to sscanf().

The second patch is about using the simple_write_to_buffer() which makes
the direct_register_access write side more symmetric with the read side.

---
Nuno Sá (2):
      iio: backend: make sure to NULL terminate stack buffer
      iio: core: make use of simple_write_to_buffer()

 drivers/iio/industrialio-backend.c | 4 +++-
 drivers/iio/industrialio-core.c    | 9 +++++----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
base-commit: c0f115a8d97599623294c8e9ec28530e19c1e85b
change-id: 20250218-dev-iio-misc-d78425a94985
--

Thanks!
- Nuno Sá

Comments

David Lechner Feb. 18, 2025, 5:29 p.m. UTC | #1
On 2/18/25 4:31 AM, Nuno Sá via B4 Relay wrote:
> The first patch is a fix for the backend code dealing with
> direct_register_access. We need to properly terminate the received
> string before passing it to sscanf().
> 
> The second patch is about using the simple_write_to_buffer() which makes
> the direct_register_access write side more symmetric with the read side.
> 
> ---

Reviewed-by: David Lechner <dlechner@baylibre.com>