From: Chengyu Song Date: Tue, 24 Mar 2015 14:37:53 +0000 (-0500) Subject: gfs2: incorrect check for debugfs returns X-Git-Tag: omap-for-v4.1/fixes-rc1~152^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4ddfa7c9523a19fca30830f8b426964d359da2;p=pandora-kernel.git 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-diff-tree failed