From: Wei Yongjun Date: Mon, 11 Mar 2013 13:45:34 +0000 (+0800) Subject: staging: sync: fix return value check in sync_fence_alloc() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~670 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59691367be00806a3ab1c6a125ced6ed87e91356;p=pandora-kernel.git staging: sync: fix return value check in sync_fence_alloc() In case of error, the function anon_inode_getfile() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed