lkml.org 
[lkml]   [2021]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2021-12-20 12:46    [W:0.047 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site