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


Groups > linux.kernel > #1655145 > unrolled thread

Re: powerpc: sysdev: simple_gpio: fix Oops in gpio save_regs function

Started byMichael Ellerman <patch-notifications@ellerman.id.au>
First post2017-06-01 15:40 +0200
Last post2017-06-01 15:40 +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: powerpc: sysdev: simple_gpio: fix Oops in gpio save_regs function Michael Ellerman <patch-notifications@ellerman.id.au> - 2017-06-01 15:40 +0200

#1655145 — Re: powerpc: sysdev: simple_gpio: fix Oops in gpio save_regs function

FromMichael Ellerman <patch-notifications@ellerman.id.au>
Date2017-06-01 15:40 +0200
SubjectRe: powerpc: sysdev: simple_gpio: fix Oops in gpio save_regs function
Message-ID<tNyut-38G-1@gated-at.bofh.it>
On Wed, 2017-05-24 at 08:01:55 UTC, Christophe Leroy wrote:
> of_mm_gpiochip_add_data() generates an Oops for NULL pointer dereference.
> 
> of_mm_gpiochip_add_data() calls mm_gc->save_regs() before
> setting the data, therefore ->save_regs() cannot use gpiochip_get_data()
> 
> Fixes: 937daafca774b ("powerpc: simple-gpio: use gpiochip data pointer")
> Cc: stable@vger.kernel.org
> 
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/6f553912eedafae13ff20b322a65e4

cheers

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web