Commit 0c814230 authored by Alessandro Rubini's avatar Alessandro Rubini

sdbfs/kernel/sdbfs-core: entrypoint me be not zero: obey it

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent e36129ff
......@@ -252,7 +252,7 @@ static int sdbfs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = SDB_MAGIC;
sb->s_op = &sdbfs_super_ops;
inode = sdbfs_iget(sb, 1 /* FIXME: root inode */);
inode = sdbfs_iget(sb, sd->entrypoint + 1 /* can't be zero */);
if (IS_ERR(inode)) {
sdbfs_put(sd);
return PTR_ERR(inode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment