Re: [PATCH 1/2] gpio: fix NULL-deref-on-deregistration regression

2021-03-01 Thread Johan Hovold
On Fri, Feb 26, 2021 at 01:54:12PM -0800, Saravana Kannan wrote: > On Fri, Feb 26, 2021 at 6:55 AM Johan Hovold wrote: > > > > Fix a NULL-pointer deference when deregistering the gpio character > > device that was introduced by the recent stub-driver hack. When the new > > "driver" is unbound as p

Re: [PATCH 1/2] gpio: fix NULL-deref-on-deregistration regression

2021-02-26 Thread Saravana Kannan
On Fri, Feb 26, 2021 at 6:55 AM Johan Hovold wrote: > > Fix a NULL-pointer deference when deregistering the gpio character > device that was introduced by the recent stub-driver hack. When the new > "driver" is unbound as part of deregistration, driver core clears the > driver-data pointer which i

[PATCH 1/2] gpio: fix NULL-deref-on-deregistration regression

2021-02-26 Thread Johan Hovold
Fix a NULL-pointer deference when deregistering the gpio character device that was introduced by the recent stub-driver hack. When the new "driver" is unbound as part of deregistration, driver core clears the driver-data pointer which is used to retrieve the struct gpio_device in its release callba