diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2010-09-14 20:36:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 19:16:43 +0200 |
commit | 3d4f9d76b0641b7984f95982e390927fc5998ad6 (patch) | |
tree | 7f57194438afcfe364fc507b359840b65c63d203 /init/do_mounts.h | |
parent | SYSFS: Allow boot time switching between deprecated and modern sysfs layout (diff) | |
download | linux-3d4f9d76b0641b7984f95982e390927fc5998ad6.tar.xz linux-3d4f9d76b0641b7984f95982e390927fc5998ad6.zip |
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 <ebiederm@aristanetworks.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init/do_mounts.h')
0 files changed, 0 insertions, 0 deletions