lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 12 Oct 2014 15:42:38 -0500
From:	Eric Biggers <>
Cc:, Eric Biggers <>
Subject: [PATCH 1/5] fs/anon_inodes.c: Remove unnecessary IS_ERR(anon_inode_inode)

anon_inode_inode is allocated by anon_inode_init(), which is fs_initcall
and will panic if it couldn't be allocated.

Signed-off-by: Eric Biggers <>
 fs/anon_inodes.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c
index 80ef38c..1faff09 100644
--- a/fs/anon_inodes.c
+++ b/fs/anon_inodes.c
@@ -75,9 +75,6 @@ struct file *anon_inode_getfile(const char *name,
 	struct path path;
 	struct file *file;
-	if (IS_ERR(anon_inode_inode))
-		return ERR_PTR(-ENODEV);
 	if (fops->owner && !try_module_get(fops->owner))
 		return ERR_PTR(-ENOENT);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists