From: Joel Becker Date: Tue, 21 Oct 2008 01:20:43 +0000 (-0700) Subject: ocfs2: Check xattr block signatures properly. X-Git-Tag: v2.6.28-rc5~82^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6087fb799e097e7c9d912daa75701de9d62dc53;p=pandora-kernel.git ocfs2: Check xattr block signatures properly. The xattr.c code is currently memcmp()ing naking buffer pointers. Create the OCFS2_IS_VALID_XATTR_BLOCK() macro to match its peers and use that. In addition, failed signature checks were returning -EFAULT, which is completely wrong. Return -EIO. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed