summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRichard Gooch <rgooch@atnf.csiro.au>2002-07-25 17:02:09 +0000
committerRichard Gooch <rgooch@atnf.csiro.au>2002-07-25 17:02:09 +0000
commit5dcb5df17dff30d2905afccdedec1561e53dd7d4 (patch)
treee23ef687f5f8e9b1d9febddf612adf33d27ccc95 /init
parentfe65ee28fec8ef713a1e7e83b03a0a12d8938fe3 (diff)
do_mounts.c, block_dev.c, hiddev.c, md.c:
Switched from devfs_find_handle() to devfs_get_handle() Many files: Switched from devfs_find_handle() to devfs_find_and_unregister() base.c: Created <devfs_find_and_unregister>.
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 1c8df0ace2ce..959d8b5fe9c0 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -356,11 +356,12 @@ static int __init create_dev(char *name, dev_t dev, char *devfs_name)
if (!do_devfs)
return sys_mknod(name, S_IFBLK|0600, dev);
- handle = devfs_find_handle(NULL, !dev ? devfs_name : NULL,
- MAJOR(dev), MINOR(dev), DEVFS_SPECIAL_BLK, 1);
+ handle = devfs_get_handle(NULL, !dev ? devfs_name : NULL,
+ MAJOR(dev), MINOR(dev), DEVFS_SPECIAL_BLK, 1);
if (!handle)
return -1;
n = devfs_generate_path(handle, path + 5, sizeof (path) - 5);
+ devfs_put(handle);
if (n < 0)
return -1;
return sys_symlink(path + n + 5, name);