From: Eric W. Biederman Date: Tue, 14 Sep 2010 18:36:27 +0000 (-0700) Subject: uio: Fix lack of locking in init_uio_class X-Git-Tag: v2.6.37-rc1~156^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d4f9d76b0641b7984f95982e390927fc5998ad6;p=pandora-kernel.git 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: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed