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
5757 struct inode *inode;
5858
5959 inode = iget_locked(super, ino);
60− if (IS_ERR(inode))
60+ if (!inode)
6161 return ERR_PTR(-ENOMEM);
6262 if (!(inode->i_state & I_NEW))
6363 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