Messages in this thread | | | Date | Mon, 20 Dec 2021 12:45:00 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH v2] sc16is7xx: Prevent dereferencing invalid data when gpio_hog used |
| |
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
| |