History

efs: iget_locked() doesn't return an ERR_PTR()

The iget_locked() function returns NULL on error and never an ERR_PTR.

Dan Carpenter committed 13 years ago

Commit 136eefa1 parent a5a19551 file · +1 −1Browse files

Unified · Split

fs/efs/inode.c+1−1
@@ -57,7 +57,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino) · 56 unmodified lines
57 struct inode *inode;57 struct inode *inode;
58 58
59 inode = iget_locked(super, ino);59 inode = iget_locked(super, ino);
60 if (IS_ERR(inode))60 if (!inode)
61 return ERR_PTR(-ENOMEM);61 return ERR_PTR(-ENOMEM);
62 if (!(inode->i_state & I_NEW))62 if (!(inode->i_state & I_NEW))
63 return inode;63 return inode;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t