patch-2.4.5 linux/fs/devices.c
Next file: linux/fs/dquot.c
Previous file: linux/fs/devfs/base.c
Back to the patch index
Back to the overall index
- Lines: 8
- Date:
Tue May 22 09:35:42 2001
- Orig file:
v2.4.4/linux/fs/devices.c
- Orig date:
Sun Oct 1 20:35:16 2000
diff -u --recursive --new-file v2.4.4/linux/fs/devices.c linux/fs/devices.c
@@ -203,6 +203,7 @@
if (S_ISCHR(mode)) {
inode->i_fop = &def_chr_fops;
inode->i_rdev = to_kdev_t(rdev);
+ inode->i_cdev = cdget(rdev);
} else if (S_ISBLK(mode)) {
inode->i_fop = &def_blk_fops;
inode->i_rdev = to_kdev_t(rdev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)