1
0
Fork 0
alistair23-linux/drivers/staging/iio/frequency
Arnd Bergmann 6826fdbd2e staging: iio: ad9832: allocate data before using
The regulator changes assigned data to an uninitialized pointer:

drivers/staging/iio/frequency/ad9832.c: In function 'ad9832_probe':
drivers/staging/iio/frequency/ad9832.c:214:11: error: 'st' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This moves the allocation of the 'st' structure before its first
use, as it should have been.

Fixes: 43a07e48af ("staging: iio: ad9832: clean-up regulator 'reg'")
Fixes: a98461d79b ("staging: iio: ad9832: add DVDD regulator")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-08 20:22:32 +00:00
..
Kconfig staging:iio: Remove ad5930/ad9850/ad9852/ad9910/ad9951 dummy drivers 2014-08-19 20:25:10 +01:00
Makefile staging:iio: Remove ad5930/ad9850/ad9852/ad9910/ad9951 dummy drivers 2014-08-19 20:25:10 +01:00
ad9832.c staging: iio: ad9832: allocate data before using 2016-11-08 20:22:32 +00:00
ad9832.h staging: iio: ad9832: clean-up regulator 'reg' 2016-11-05 16:23:01 +00:00
ad9834.c staging: iio: rework regulator handling 2016-11-05 16:17:14 +00:00
ad9834.h Staging: iio: Do not use multiple blank lines 2015-03-16 16:14:05 +01:00
dds.h Staging: iio: Added define guards where needed 2015-03-06 09:54:33 -08:00