Re: [PATCH] uio: ensure class is registered before devices

2018-06-16 Thread Greg Kroah-Hartman
On Fri, Jun 15, 2018 at 05:52:49PM +0200, Alexandre Belloni wrote: > When both uio and the uio drivers are built in the kernel, it is possible > for a driver to register devices before the uio class is registered. > > This may result in a NULL pointer dereference later on in > get_device_parent()

[PATCH] uio: ensure class is registered before devices

2018-06-15 Thread Alexandre Belloni
When both uio and the uio drivers are built in the kernel, it is possible for a driver to register devices before the uio class is registered. This may result in a NULL pointer dereference later on in get_device_parent() when accessing the class glue_dirs spinlock. The trace looks like that: Una