[patch] bfs: iget_locked() doesn't return an ERR_PTR

DORMANTno replies

From: Dan Carpenter <hidden>
Date: 2013-08-14 09:51:20
Also in: lkml
Subsystem: bfs file system, filesystems (vfs and infrastructure), the rest · Maintainers: "Tigran A. Aivazian", Alexander Viro, Christian Brauner, Linus Torvalds

iget_locked() returns a NULL on error, it doesn't return an ERR_PTR.

Signed-off-by: Dan Carpenter <redacted>
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c
index 5e376bb..8defc6b 100644
--- a/fs/bfs/inode.c
+++ b/fs/bfs/inode.c
@@ -40,7 +40,7 @@ struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
 	int block, off;
 
 	inode = iget_locked(sb, ino);
-	if (IS_ERR(inode))
+	if (!inode)
 		return ERR_PTR(-ENOMEM);
 	if (!(inode->i_state & I_NEW))
 		return inode;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help