From: Jan Glauber Date: Fri, 9 Jan 2009 11:14:55 +0000 (+0100) Subject: [S390] qdio: fix broken pointer in case of CONFIG_DEBUG_FS is disabled X-Git-Tag: v2.6.29-rc1~24^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19cdd08ba155dd87ebb87bb39ed097dbee671e0e;p=pandora-kernel.git [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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed