Thread (3 messages) 3 messages, 2 authors, 2021-12-20

Re: [PATCH v2] sc16is7xx: Prevent dereferencing invalid data when gpio_hog used

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-12-20 11:45:06
Also in: lkml

On Mon, Dec 20, 2021 at 12:36:03PM +0100, Radim Pavlik wrote:
gpio_hog is trying to use gpio functions during probe call.
At that time we dont have initialized port data which are dereferenced
via assigned gpio.direction_input/output functions.
This results in unable to handle kernel NULL pointer dereference
followed by Kernel panic.
This patch prevents that.

Due to changed order of initialization 'port' before 'gpio controller'
was also changed error path which resulted in removed label.

No fixes tag because patch spans across multiple patches.
Then list the individual patches please.  Or at least give us a chance
to know how far back to backport this to stable kernels.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help