summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJan Glauber <jang@linux.vnet.ibm.com>2009-01-09 11:14:55 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-01-09 11:15:07 (GMT)
commit19cdd08ba155dd87ebb87bb39ed097dbee671e0e (patch)
tree480c3dd45ecda6b692637168b4aea7ddde6bfaae /arch
parent81ffa0415b7ac9215c2030e2b15b8efff46605a0 (diff)
downloadlinux-fsl-qoriq-19cdd08ba155dd87ebb87bb39ed097dbee671e0e.tar.xz
[S390] qdio: fix broken pointer in case of CONFIG_DEBUG_FS is disabled
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions