[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0702181642060.28890@yvahk01.tjqt.qr>
Date: Sun, 18 Feb 2007 16:45:58 +0100 (MET)
From: Jan Engelhardt <jengelh@...ux01.gwdg.de>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: securityfs_create_dir strange comment
Hello list,
in security/inode.c, the comment for securityfs_create_dir() reads:
If securityfs is not enabled in the kernel, the value -ENODEV
will be returned. It is not wise to check for this value, but
rather, check for NULL or !NULL instead as to eliminate the need
for #ifdef in the calling code.
What is the actual callee that can return NULL - and what should
module_init() of a module return when securityfs_create_dir() returns
NULL?
Thanks,
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists