Re: [PATCH V3 4/6] xen/unpopulated-alloc: Add mechanism to use Xen resource

From: Boris Ostrovsky
Date: Fri Nov 26 2021 - 10:20:06 EST



On 11/24/21 3:53 PM, Oleksandr Tyshchenko wrote:
+ if (target_resource != &iomem_resource) {
+ tmp_res = kzalloc(sizeof(*tmp_res), GFP_KERNEL);
+ if (!res) {


If (!tmp_res)


+ ret = -ENOMEM;
+ goto err_insert;
+ }