ocfs2: Fix checking of return value of new_inode()
authorJan Kara <jack@suse.cz>
Mon, 20 Oct 2008 17:23:53 +0000 (19:23 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:46 +0000 (09:51 -0800)
commit87cfa004321c62aec681713ea48e0b846336d9f4
tree6ce76f2d2d97d8e9edf100d4c8561b8dcde338d4
parentfa38e92cb34e27e60d0faf1035934eb9b44aa1d4
ocfs2: Fix checking of return value of new_inode()

new_inode() does not return ERR_PTR() but NULL in case of failure. Correct
checking of the return value.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/namei.c