On Mon, Mar 4, 2024 at 8:07 AM Andy Shevchenko
<[email protected]> wrote:
>
> In iio_device_alloc() when size of the private data is 0,
> the private pointer is calculated to point behind the valid data.
> Leave it NULL when no private data supplied.
>
> Fixes: 6d4ebd565d15 ("iio: core: wrap IIO device into an iio_dev_opaque object")
> Signed-off-by: Andy Shevchenko <[email protected]>
> ---
Reviewed-by: David Lechner <[email protected]>