aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFabrizio Lamarque <[email protected]>2023-05-30 09:53:07 +0200
committerJonathan Cameron <[email protected]>2023-06-04 12:31:59 +0100
commit9e58e3a6f8e1c483c86a04903b7b7aa0923e4426 (patch)
tree964198c3909b42f9b00c781706b20d49f9843386 /tools/perf/scripts/python/bin
parenta4cba07e64e6ec22d9504a1a45d29afa863dc19c (diff)
iio: adc: ad7192: Fix null ad7192_state pointer access
Pointer to indio_dev structure is obtained via spi_get_drvdata() at the beginning of function ad7192_setup(), but the spi->dev->driver_data member is not initialized, hence a NULL pointer is returned. Fix by changing ad7192_setup() signature to take pointer to struct iio_dev, and get ad7192_state pointer via st = iio_priv(indio_dev); Fixes: bd5dcdeb3fd0 ("iio: adc: ad7192: convert to device-managed functions") Signed-off-by: Fabrizio Lamarque <[email protected]> Reviewed-by: Nuno Sa <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions