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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux