From: Tiger Yang Date: Sun, 2 Nov 2008 11:04:21 +0000 (+0800) Subject: ocfs2: Check search result in ocfs2_xattr_block_get() X-Git-Tag: v2.6.28-rc5~82^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1e183e12dbd78a897a859f13220406296fee31;p=pandora-kernel.git ocfs2: Check search result in ocfs2_xattr_block_get() ocfs2_xattr_block_get() calls ocfs2_xattr_search() to find an external xattr, but doesn't check the search result that is passed back via struct ocfs2_xattr_search. Add a check for search result, and pass back -ENODATA if the xattr search failed. This avoids a later NULL pointer error. Signed-off-by: Tiger Yang Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed