Re: [PATCH 1/1 v2] xen: xenbus: set error code on failure

From: Juergen Gross
Date: Thu Dec 08 2016 - 01:58:15 EST


On 05/12/16 09:22, Pan Bian wrote:
> Variable err is initialized with 0. As a result, the return value may
> be 0 even if get_zeroed_page() fails to allocate memory. This patch fixes
> the bug, initializing err with "-ENOMEM".
>
> v1 is reviewed by: Juergen Gross <jgross@xxxxxxxx>
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>

Commited to xen/tip.git for-linus-4.10


Juergen