]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Fix check of return value of ocfs2_start_trans() in xattr.c.
authorTao Ma <tao.ma@oracle.com>
Thu, 23 Oct 2008 23:57:28 +0000 (07:57 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:47 +0000 (09:51 -0800)
commit9a8eb18334396d5098c45171680a2fcdea759662
tree54178f5bdb8c654b917aedc08a8284c2596391ea
parentaef0498a8063b1b8c24472a64544b41c4de1370f
ocfs2: Fix check of return value of ocfs2_start_trans() in xattr.c.

On failure, ocfs2_start_trans() returns values like ERR_PTR(-ENOMEM),
so we should check whether handle is NULL. Fix them to use IS_ERR().
Jan has made the patch for other part in ocfs2(thank Jan for it), so
this is just the fix for fs/ocfs2/xattr.c.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c