diff options
-rw-r--r-- | meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c index 247d6c1c3c..d58e8911a6 100644 --- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c +++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c @@ -226,7 +226,7 @@ static int interpret_table_entry(char *line) sprintf(path, "%s/%s%d", rootdir, name, i); /* FIXME: MKDEV uses illicit insider knowledge of kernel * major/minor representation... */ - rdev = MKDEV(major, minor + (i * increment - start)); + rdev = MKDEV(major, minor + (i - start) * increment); add_new_device(buf, path, uid, gid, mode, rdev); } } else { |