patch-2.4.0-test6 linux/fs/devices.c

Next file: linux/fs/exec.c
Previous file: linux/fs/dcache.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/fs/devices.c linux/fs/devices.c
@@ -88,11 +88,11 @@
 		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;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)