https://github.com/torvalds/linux
Revision 19cdd08ba155dd87ebb87bb39ed097dbee671e0e authored by Jan Glauber on 09 January 2009, 11:14:55 UTC, committed by Martin Schwidefsky on 09 January 2009, 11:15:07 UTC
If CONFIG_DEBUG_FS is disabled debugfs_create_file returns -ENODEV instead
of zero. Since the return value is stored and used at shutdown to remove
existing entries an OOPS may be triggered.

Add a check of the debugfs_create_file return value and in case of an error
set the entry to NULL so it will be ignored at shutdown.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 81ffa04
History
Tip revision: 19cdd08ba155dd87ebb87bb39ed097dbee671e0e authored by Jan Glauber on 09 January 2009, 11:14:55 UTC
[S390] qdio: fix broken pointer in case of CONFIG_DEBUG_FS is disabled
Tip revision: 19cdd08
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.5 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 106.0 KB
Makefile -rw-r--r-- 54.1 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top