Re: [patch] Staging: iio: uninitialized variable in sca3000_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 29 2011, Dan Carpenter wrote:

We recently changed how "st" was allocated in 83f0422dc6a16
"staging:iio:accel:sca3000: allocate state in iio_dev and use
iio_priv to access."  Unfortunately this assignment was left out.

Thanks,
Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxx>

diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c index 4313f73..603f5bc 100644 --- a/drivers/staging/iio/accel/sca3000_core.c +++ b/drivers/staging/iio/accel/sca3000_core.c @@ -1133,6 +1133,7 @@ static int __devinit sca3000_probe(struct spi_device *spi)
		goto error_ret;
	}

+	st = iio_priv(indio_dev);
	spi_set_drvdata(spi, indio_dev);
	st->us = spi;
	mutex_init(&st->lock);

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux