Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f73cde60 authored by George McCollister's avatar George McCollister Committed by Jonathan Cameron
Browse files

iio: as3935: allocate correct iio_device size



Signed-off-by: default avatarGeorge McCollister <george.mccollister@gmail.com>
Acked-by: default avatarHartmut Knaack <knaack.h@gmx.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 25afffe1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ static int as3935_probe(struct spi_device *spi)
		return -EINVAL;
	}

	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(st));
	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
	if (!indio_dev)
		return -ENOMEM;