lists.openwall.net | 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 linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1424841259-8470-1-git-send-email-zhangzl2013@126.com> Date: Wed, 25 Feb 2015 13:14:19 +0800 From: Zhang Zhaolong <zhangzl2013@....com> To: davem@...emloft.net Cc: netdev@...r.kernel.org, viro@...iv.linux.org.uk, dhowells@...hat.com, Zhang Zhaolong <zhangzl2013@....com> Subject: [PATCH] proc: proc_create() should return true if CONFIG_PROC_FS is not configured proc_create() should return true if CONFIG_PROC_FS is not configured. Otherwise if-statement like this "if (!proc_create())" would go to the false path. Signed-off-by: Zhang Zhaolong <zhangzl2013@....com> --- include/linux/proc_fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index b97bf2e..1fc07b9 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -60,8 +60,8 @@ static inline struct proc_dir_entry *proc_mkdir_data(const char *name, umode_t mode, struct proc_dir_entry *parent, void *data) { return NULL; } static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, umode_t mode, struct proc_dir_entry *parent) { return NULL; } -#define proc_create(name, mode, parent, proc_fops) ({NULL;}) -#define proc_create_data(name, mode, parent, proc_fops, data) ({NULL;}) +#define proc_create(name, mode, parent, proc_fops) ({ 1; }) +#define proc_create_data(name, mode, parent, proc_fops, data) ({ 1; }) static inline void proc_set_size(struct proc_dir_entry *de, loff_t size) {} static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {} -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists