Skip to content

Commit

Permalink
devfs: Populate si_umajor, too.
Browse files Browse the repository at this point in the history
Pointed-out-by: alexh
  • Loading branch information
Sascha Wildner committed Jan 28, 2011
1 parent 2aaab06 commit 2c2ab04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sys/vfs/devfs/devfs_core.c
Expand Up @@ -2225,7 +2225,6 @@ devfs_new_cdev(struct dev_ops *ops, int minor, struct dev_ops *bops)
dev->si_dict = NULL;
dev->si_ops = ops;
dev->si_flags = 0;
dev->si_umajor = 0;
dev->si_uminor = minor;
dev->si_bops = bops;

Expand All @@ -2241,9 +2240,8 @@ devfs_new_cdev(struct dev_ops *ops, int minor, struct dev_ops *bops)
}

/* If there is a backing device, we reference its ops */
dev->si_inode = makeudev(
devfs_reference_ops((bops)?(bops):(ops)),
minor );
dev->si_umajor = devfs_reference_ops((bops)?(bops):(ops));
dev->si_inode = makeudev(dev->si_umajor, minor);

return dev;
}
Expand Down

0 comments on commit 2c2ab04

Please sign in to comment.