All of lore.kernel.org
 help / color / mirror / Atom feed
* securityfs_create_dir strange comment
@ 2007-02-18 15:45 Jan Engelhardt
  2007-02-20 21:18 ` Serge E. Hallyn
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Engelhardt @ 2007-02-18 15:45 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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
-- 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-21 17:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-18 15:45 securityfs_create_dir strange comment Jan Engelhardt
2007-02-20 21:18 ` Serge E. Hallyn
2007-02-20 22:26   ` Greg KH
2007-02-20 23:45     ` Jan Engelhardt
2007-02-21  4:05       ` Greg KH
2007-02-21 17:07         ` Jan Engelhardt
2007-02-21 17:29           ` Greg KH
2007-02-21 17:46             ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.