patch-1.3.28 linux/fs/xiafs/namei.c

Next file: linux/include/asm-alpha/irq.h
Previous file: linux/fs/xiafs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/fs/xiafs/namei.c linux/fs/xiafs/namei.c
@@ -317,7 +317,7 @@
     else if (S_ISFIFO(inode->i_mode))
     	init_fifo(inode);
     if (S_ISBLK(mode) || S_ISCHR(mode))
-        inode->i_rdev = rdev;
+        inode->i_rdev = to_kdev_t(rdev);
     inode->i_atime = inode->i_ctime = inode->i_atime = CURRENT_TIME;
     inode->i_dirt = 1;
     bh = xiafs_add_entry(dir, name, len, &de, NULL);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this