Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420022 > unrolled thread

Re: [PATCH] staging: iio: fix ad7606_spi regression

Started byJonathan Cameron <jic23@kernel.org>
First post2016-06-11 19:00 +0200
Last post2016-06-11 19:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] staging: iio: fix ad7606_spi regression Jonathan Cameron <jic23@kernel.org> - 2016-06-11 19:00 +0200

#1420022 — Re: [PATCH] staging: iio: fix ad7606_spi regression

FromJonathan Cameron <jic23@kernel.org>
Date2016-06-11 19:00 +0200
SubjectRe: [PATCH] staging: iio: fix ad7606_spi regression
Message-ID<rIUqm-5vU-9@gated-at.bofh.it>
On 30/05/16 14:54, Geert Uytterhoeven wrote:
> On Mon, May 30, 2016 at 3:50 PM, Arnd Bergmann <arnd@arndb.de> wrote:
>> As pointed out by Geert Uytterhoeven, the patch was incorrect
>> and breaks the driver, which was fortunately pointed out by
>> this gcc warning:
>>
>> drivers/staging/iio/adc/ad7606_spi.c: In function ‘ad7606_spi_read_block’:
>> drivers/staging/iio/adc/ad7606_spi.c:34: warning: ‘data’ is used uninitialized in this function
>>
>> The effect of the patch is that the data is copied into
>> a random memory location (from the uninitialized pointer)
>> instead of being byteswapped in place.
>>
>> This adds the initialization for the 'data' variable back
>> to restore the original behavior.
>>
>> Cc: Geert Uytterhoeven <geert@linux-m68k.org>
>> Cc: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
>> Fixes: 87787e5ef727 ("Staging: iio: Fix sparse endian warning")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Applied to the fixes-togreg branch of iio.git

Thanks,

Jonathan
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web