]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] xen: Fix return value check in xencomm_vtop()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 27 Sep 2012 19:30:18 +0000 (12:30 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 27 Sep 2012 19:30:18 +0000 (12:30 -0700)
commit499d2b6fec1b0756c71ee3069bca55b12c3b470f
tree6923d05bc739e98c6af4f5e97d96c2aa4905c410
parent2f63ed6bef916930cbae6b398098bf0e56fd61f1
[IA64] xen: Fix return value check in xencomm_vtop()

In case of error, the function follow_page() returns ERR_PTR()
or NULL pointer. The NULL test in the error handling should be
replaced with IS_ERR_OR_NULL().

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/xen/xencomm.c