]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/gfs2/inode.c
Merge tag 'for-linus-4.7-2' of git://git.code.sf.net/p/openipmi/linux-ipmi
[karo-tx-linux.git] / fs / gfs2 / inode.c
index 72e9c64ae37166d45361bfd1252b3fa85ac2159d..21dc784f66c2268d2e857314104847b600cc09de 100644 (file)
@@ -93,12 +93,12 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
        int error;
 
        inode = iget_locked(sb, (unsigned long)no_addr);
-       ip = GFS2_I(inode);
-       ip->i_no_addr = no_addr;
-
        if (!inode)
                return ERR_PTR(-ENOMEM);
 
+       ip = GFS2_I(inode);
+       ip->i_no_addr = no_addr;
+
        if (inode->i_state & I_NEW) {
                struct gfs2_sbd *sdp = GFS2_SB(inode);
                ip->i_no_formal_ino = no_formal_ino;