summaryrefslogtreecommitdiffstats
path: root/fs/devices.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-08-08 12:37:17 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-08-08 12:37:17 +0000
commit9aa9eb41942b918f385ccabd2efdd6e7e4232165 (patch)
tree20bec7da036d31ec185dfc1dcc00753c7ac9b170 /fs/devices.c
parent87075e049581f880f01eb0b41aa6ac807b299e35 (diff)
Merge with Linux 2.4.0-test6-pre1.
Diffstat (limited to 'fs/devices.c')
-rw-r--r--fs/devices.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/devices.c b/fs/devices.c
index dd7db7730..85fb7e519 100644
--- a/fs/devices.c
+++ b/fs/devices.c
@@ -88,11 +88,11 @@ static struct file_operations * get_chrfops(unsigned int major, unsigned int min
char name[20];
sprintf(name, "char-major-%d", major);
request_module(name);
- }
- read_lock(&chrdevs_lock);
- ret = fops_get(chrdevs[major].fops);
- read_unlock(&chrdevs_lock);
+ read_lock(&chrdevs_lock);
+ ret = fops_get(chrdevs[major].fops);
+ read_unlock(&chrdevs_lock);
+ }
#endif
return ret;
}