diff options
| author | Chengyu Song <[email protected]> | 2015-03-24 09:37:53 -0500 |
|---|---|---|
| committer | Bob Peterson <[email protected]> | 2015-03-30 09:13:29 -0500 |
| commit | 7b4ddfa7c9523a19fca30830f8b426964d359da2 (patch) | |
| tree | a216c677645c3783b3a8263901d4da122d9929fe /net/switchdev/switchdev.c | |
| parent | d9be0cda774e7fe36651b04a89a42e9e354e43c3 (diff) | |
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 <[email protected]>
Signed-off-by: Bob Peterson <[email protected]>
Acked-by: Steven Whitehouse <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions