uio: Fix lack of locking in init_uio_class
There is no locking in init_uio_class so multiple drivers can race and create multiple uio classes. Fix this by simplifying the code. In particular always register the uio class during module_init and make things simpler. Signed-off-by: NEric W. Biederman <ebiederm@aristanetworks.com> Reviewed-by: NThomas Gleixner <tglx@linutronix.de> Signed-off-by: NHans J. Koch <hjk@linutronix.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Showing
想要评论请 注册 或 登录