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

2016-12-07 Thread Juergen Gross
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 > > Signed-off-by: Pan Bian C

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

2016-12-05 Thread Juergen Gross
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 I didn't say so. > Signed-off-

[Xen-devel] [PATCH 1/1 v2] xen: xenbus: set error code on failure

2016-12-05 Thread Pan Bian
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 Signed-off-by: Pan Bian --- drivers/xen/xenbus/xenbus_probe.c | 2 +- 1 fi