From 7b4ddfa7c9523a19fca30830f8b426964d359da2 Mon Sep 17 00:00:00 2001 From: Chengyu Song Date: Tue, 24 Mar 2015 09:37:53 -0500 Subject: [PATCH] gfs2: incorrect check for debugfs returns debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs is not configured, so the return value should be checked against ERROR_VALUE as well, otherwise the later dereference of the dentry pointer would crash the kernel. Signed-off-by: Chengyu Song Signed-off-by: Bob Peterson Acked-by: Steven Whitehouse --- Reading git-format-patch failed