]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Check xattr block signatures properly.
authorJoel Becker <joel.becker@oracle.com>
Tue, 21 Oct 2008 01:20:43 +0000 (18:20 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:44 +0000 (09:51 -0800)
commitcfb800144d740c2e01b62ab9e31e060a1b9a6b18
tree010e8455fa5e53e68c76b949b4abd39876c2921f
parent7a9dc8f88134a243df9a6ab66f0de59483709977
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 <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/ocfs2.h
fs/ocfs2/xattr.c