xen: xenbus: set error code on failure
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".
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug:
25497392
(cherry picked from commit
2466d4b9d0c21e6c28cd63516dea65806bf5a307)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>