mikaku / Fiwix

A UNIX-like kernel for the i386 architecture
https://www.fiwix.org
Other
407 stars 32 forks source link

Missing return value from read_inode #31

Closed rick-masters closed 1 year ago

rick-masters commented 1 year ago

Commit e48c26336b85f9dec8334822075c2b2f21620686 removed the return statement from read_inode in fs/inode.c.

Please revise to this:

static int read_inode(struct inode *i)
{
        int errno;

        inode_lock(i);
        errno = i->sb->fsop->read_inode(i);
        inode_unlock(i);
        return errno;
}
mikaku commented 1 year ago

It is fixed now. Thank you very much.