Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Jonathan Cameron
On 19/06/16 11:03, Nicolas Iooss wrote: > On 06/19/2016 11:41 AM, Lars-Peter Clausen wrote: >> On 06/18/2016 11:12 PM, Nicolas Iooss wrote: >>> ad7606_spi_read_block() reads SPI big-endian data into a buffer which is >>> then converted to CPU byte-order with a second variable. This variable, >>>

Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Jonathan Cameron
On 19/06/16 11:03, Nicolas Iooss wrote: > On 06/19/2016 11:41 AM, Lars-Peter Clausen wrote: >> On 06/18/2016 11:12 PM, Nicolas Iooss wrote: >>> ad7606_spi_read_block() reads SPI big-endian data into a buffer which is >>> then converted to CPU byte-order with a second variable. This variable, >>>

Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Nicolas Iooss
On 06/19/2016 11:41 AM, Lars-Peter Clausen wrote: > On 06/18/2016 11:12 PM, Nicolas Iooss wrote: >> ad7606_spi_read_block() reads SPI big-endian data into a buffer which is >> then converted to CPU byte-order with a second variable. This variable, >> data, has been left unitialized after commit

Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Nicolas Iooss
On 06/19/2016 11:41 AM, Lars-Peter Clausen wrote: > On 06/18/2016 11:12 PM, Nicolas Iooss wrote: >> ad7606_spi_read_block() reads SPI big-endian data into a buffer which is >> then converted to CPU byte-order with a second variable. This variable, >> data, has been left unitialized after commit

Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Lars-Peter Clausen
On 06/18/2016 11:12 PM, Nicolas Iooss wrote: > ad7606_spi_read_block() reads SPI big-endian data into a buffer which is > then converted to CPU byte-order with a second variable. This variable, > data, has been left unitialized after commit 87787e5ef727 ("Staging: > iio: Fix sparse endian

Re: [PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-19 Thread Lars-Peter Clausen
On 06/18/2016 11:12 PM, Nicolas Iooss wrote: > ad7606_spi_read_block() reads SPI big-endian data into a buffer which is > then converted to CPU byte-order with a second variable. This variable, > data, has been left unitialized after commit 87787e5ef727 ("Staging: > iio: Fix sparse endian

[PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-18 Thread Nicolas Iooss
ad7606_spi_read_block() reads SPI big-endian data into a buffer which is then converted to CPU byte-order with a second variable. This variable, data, has been left unitialized after commit 87787e5ef727 ("Staging: iio: Fix sparse endian warning"). Signed-off-by: Nicolas Iooss

[PATCH 1/1] staging: iio: initialize data pointer before using it

2016-06-18 Thread Nicolas Iooss
ad7606_spi_read_block() reads SPI big-endian data into a buffer which is then converted to CPU byte-order with a second variable. This variable, data, has been left unitialized after commit 87787e5ef727 ("Staging: iio: Fix sparse endian warning"). Signed-off-by: Nicolas Iooss Fixes: