summaryrefslogtreecommitdiff
path: root/fs/hostfs/hostfs_kern.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@linuxtv.org>2007-01-29 13:19:44 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-30 08:26:44 -0800
commit88f6cd0c3bb5db2619103f834d4167b7d0d9899c (patch)
tree06ee040a40e749dc1bf2fed61201db9d2a4d0356 /fs/hostfs/hostfs_kern.c
parent7a238fcba0629b6f2edbcd37458bae56fcf36be5 (diff)
downloadlinux-3.10-88f6cd0c3bb5db2619103f834d4167b7d0d9899c.tar.gz
linux-3.10-88f6cd0c3bb5db2619103f834d4167b7d0d9899c.tar.bz2
linux-3.10-88f6cd0c3bb5db2619103f834d4167b7d0d9899c.zip
[PATCH] uml: fix mknod
Fix UML hostfs mknod(): userspace has differernt dev_t size and encoding than kernel, so extract major/minor and reencode using glibc makedev() macro. Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Acked-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hostfs/hostfs_kern.c')
-rw-r--r--fs/hostfs/hostfs_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 1e6fc379987..69a376f35a6 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -755,7 +755,7 @@ int hostfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
goto out_put;
init_special_inode(inode, mode, dev);
- err = do_mknod(name, mode, dev);
+ err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
if(err)
goto out_free;