From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Mon, 30 Mar 2015 10:16:00 -0400 (EDT) Subject: [Cluster-devel] [PATCH 1/1] gfs2: incorrect check for debugfs returns In-Reply-To: <1427164618-568-1-git-send-email-csong84@gatech.edu> References: <1427164618-568-1-git-send-email-csong84@gatech.edu> Message-ID: <418606603.5467773.1427724960573.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ----- Original Message ----- > 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 > --- > fs/gfs2/glock.c | 47 ++++++++++++++++++++++++++++------------------- > 1 file changed, 28 insertions(+), 19 deletions(-) Hi, I've now added this patch to the for-next branch of the linux-gfs2.git tree. Thanks. Regards, Bob Peterson Red Hat File Systems