From: Artem Bityutskiy Date: Fri, 1 Apr 2011 07:16:17 +0000 (+0300) Subject: UBIFS: fix error path in dbg_debugfs_init_fs X-Git-Tag: v2.6.39-rc3~20^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95169535113073993a3ed97ecc21831657f42a80;p=pandora-kernel.git UBIFS: fix error path in dbg_debugfs_init_fs The debug interface is substandard and on error returns either NULL or an error code packed in the pointer. So using "IS_ERR" for the pointers returned by debugfs function is incorrect. Instead, we should use IS_ERR_OR_NULL. This path is an improved vestion of the original patch from Phil Carmody. Reported-by: Phil Carmody Signed-off-by: Artem Bityutskiy Acked-by: Phil Carmody --- Reading git-diff-tree failed