gfs2: incorrect check for debugfs returns
authorChengyu Song <csong84@gatech.edu>
Tue, 24 Mar 2015 14:37:53 +0000 (09:37 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 30 Mar 2015 14:13:29 +0000 (09:13 -0500)
commit7b4ddfa7c9523a19fca30830f8b426964d359da2
treea216c677645c3783b3a8263901d4da122d9929fe
parentd9be0cda774e7fe36651b04a89a42e9e354e43c3
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 <csong84@gatech.edu>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
This page took 0.026274 seconds and 5 git commands to generate.