diff -Naur -X exclude-files ac_clean/arch/um/fs/hostfs/hostfs_kern.c ac/arch/um/fs/hostfs/hostfs_kern.c --- ac_clean/arch/um/fs/hostfs/hostfs_kern.c Sun May 27 15:42:43 2001 +++ ac/arch/um/fs/hostfs/hostfs_kern.c Sun May 27 19:06:34 2001 @@ -408,7 +408,7 @@ char *file; int len; - file = inode_name(ino, dentry->d_name.len + 2); + file = inode_name(ino, dentry->d_name.len + 1); if(file == NULL) return(NULL); strcat(file, "/"); len = strlen(file); @@ -641,7 +641,6 @@ root_inode->u.generic_ip = name; sb->s_root = d_alloc_root(root_inode); if(read_inode(root_inode)){ - kfree(name); iput(root_inode); return(NULL); } @@ -663,6 +662,7 @@ int blocksize = get_hardsect_size(dev); if(blocksize == 0) blocksize = BLOCK_SIZE; + set_blocksize (dev, blocksize); if(!(bh = bread (dev, 0, blocksize))) return NULL; if(strncmp(bh->b_data, "HOSTFS:", strlen("HOSTFS:"))) goto out; ret = hostfs_read_super_common(sb, bh->b_data + strlen("HOSTFS:"));