diff options
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index b8c0090..8f23120 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -42,8 +42,8 @@ static void make_device(char *path) snprintf(temp, PATH_MAX, "%s/dev", path); fd = open(temp, O_RDONLY); len = read(fd, temp, PATH_MAX-1); - if (len<1) goto end; close(fd); + if (len<1) goto end; /* Determine device name, type, major and minor */ |