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

2016-12-04 Thread Pan Bian
From: PanBian On Mon, Dec 05, 2016 at 07:30:49AM +0100, Juergen Gross wrote: > On 03/12/16 11:49, Pan Bian wrote: > > In function xenstored_local_init(), the value of return variable err > > should be negative on errors. But the value of err keeps 0 even if the > > call to get_zeroed_page() retu

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

2016-12-04 Thread Juergen Gross
On 03/12/16 11:49, Pan Bian wrote: > In function xenstored_local_init(), the value of return variable err > should be negative on errors. But the value of err keeps 0 even if the > call to get_zeroed_page() returns a NULL pointer. This patch assigns > "-ENOMEM" to err on the error branch. > > Bu

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

2016-12-03 Thread Pan Bian
In function xenstored_local_init(), the value of return variable err should be negative on errors. But the value of err keeps 0 even if the call to get_zeroed_page() returns a NULL pointer. This patch assigns "-ENOMEM" to err on the error branch. Bugzilla: https://bugzilla.kernel.org/show_bug.cg