Re: [PATCH] ia64/xen: fix return value check in xencomm_vtop()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 20, 2012 at 9:30 PM, Wei Yongjun <weiyj.lk@xxxxxxxxx> wrote:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> 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().

I added a:

#include <linux/err.h>

so that the definition of IS_ERR_OR_NULL() became visible
to xencomm.c and applied.

Thanks

-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux