Re: [PATCH] 2.3.99-* fs/romfs/inode.c

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sun Apr 16 2000 - 11:37:44 EST


"Bradley D. LaRonde" <brad@ltc.com> said:
> Here is a fix by Mike Klar and I for romfs_read_inode and symlinks, which
> just oopses in 2.3.99:
>
> -----------------------------------------------------
> diff -u -r1.1.1.4 inode.c
> --- fs/romfs/inode.c 2000/04/12 03:53:38 1.1.1.4
> +++ fs/romfs/inode.c 2000/04/16 05:05:43
> @@ -506,7 +506,8 @@
> break;
> case 3:
> i->i_op = &page_symlink_inode_operations;
> - i->i_mode = S_IRWXUGO;
> + i->i_data.a_ops = &romfs_aops;
> + i->i_mode = ino | S_IRWXUGO;
                  ^^^
                   Isn't that the inode? Sounds wrong...
> break;
> default:
> /* depending on MBZ for sock/fifos */
> -----------------------------------------------------

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:09 EST