Re: [PATCH] driver core: platform: don't oops on unbound devices

2020-12-12 Thread Uwe Kleine-König
Hello Dmitry, On Sat, Dec 12, 2020 at 11:49:26PM +0300, Dmitry Baryshkov wrote: > On Sat, 12 Dec 2020 at 18:39, Uwe Kleine-König > wrote: > > On Sat, Dec 12, 2020 at 12:41:32PM +0100, Greg Kroah-Hartman wrote: > > > On Sat, Dec 12, 2020 at 04:14:26AM +0300, Dmitry Baryshkov wrote: > > > > Platfor

Re: [PATCH] driver core: platform: don't oops on unbound devices

2020-12-12 Thread Dmitry Baryshkov
Hello, On Sat, 12 Dec 2020 at 18:39, Uwe Kleine-König wrote: > > Hello, > > On Sat, Dec 12, 2020 at 12:41:32PM +0100, Greg Kroah-Hartman wrote: > > On Sat, Dec 12, 2020 at 04:14:26AM +0300, Dmitry Baryshkov wrote: > > > Platform code stopped checking if the device is bound to the actual > > > pla

Re: [PATCH] driver core: platform: don't oops on unbound devices

2020-12-12 Thread Uwe Kleine-König
Hello, On Sat, Dec 12, 2020 at 12:41:32PM +0100, Greg Kroah-Hartman wrote: > On Sat, Dec 12, 2020 at 04:14:26AM +0300, Dmitry Baryshkov wrote: > > Platform code stopped checking if the device is bound to the actual > > platform driver, thus calling non-existing drv->shutdown(). Verify that > > _de

Re: [PATCH] driver core: platform: don't oops on unbound devices

2020-12-12 Thread Greg Kroah-Hartman
On Sat, Dec 12, 2020 at 04:14:26AM +0300, Dmitry Baryshkov wrote: > Platform code stopped checking if the device is bound to the actual > platform driver, thus calling non-existing drv->shutdown(). Verify that > _dev->driver is not NULL before calling remove/shutdown callbacks. > > Signed-off-by:

[PATCH] driver core: platform: don't oops on unbound devices

2020-12-11 Thread Dmitry Baryshkov
Platform code stopped checking if the device is bound to the actual platform driver, thus calling non-existing drv->shutdown(). Verify that _dev->driver is not NULL before calling remove/shutdown callbacks. Signed-off-by: Dmitry Baryshkov Fixes: 9c30921fe799 ("driver core: platform: use bus_type