patch-2.4.15 linux/drivers/cdrom/cdrom.c

Next file: linux/drivers/char/Config.in
Previous file: linux/drivers/block/xd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
@@ -2625,7 +2625,8 @@
 #ifdef CONFIG_SYSCTL
 	cdrom_sysctl_register();
 #endif
-	devfs_handle = devfs_mk_dir(NULL, "cdroms", NULL);
+	if (!devfs_handle)
+		devfs_handle = devfs_mk_dir(NULL, "cdroms", NULL);
 	return 0;
 }
 

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