Jan Glauber 19cdd08ba1 [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>
2009-01-09 12:15:07 +01:00
..
2009-01-09 12:15:04 +01:00
2009-01-06 10:44:34 -08:00
2009-01-06 10:44:34 -08:00
2005-04-16 15:20:36 -07:00
2009-01-06 10:44:34 -08:00
2008-07-14 10:02:09 +02:00
2008-12-25 13:39:00 +01:00