]> git.baikalelectronics.ru Git - kernel.git/commit
hppfs: fix the return value of get_inode()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 21 Sep 2012 04:55:02 +0000 (12:55 +0800)
committerRichard Weinberger <richard@nod.at>
Tue, 9 Oct 2012 20:34:52 +0000 (22:34 +0200)
commit326a0af13cf017c7606cbd3e5d7b9209acbf8eb8
treeb1bbd8cec2dca0540584c74b5f7f866b918a03dc
parent56b74318c5c33788a666d35cc275b446ab5c5b1f
hppfs: fix the return value of get_inode()

In case of error, the function get_inode() returns ERR_PTR().
But the users hppfs_lookup() and hppfs_fill_super() use NULL
test for check the return value, not IS_ERR(), so we'd better
change the return value of get_inode() to NULL instead of
ERR_PTR().

dpatch engine is used to generated this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hppfs/hppfs.c