xen: add error handling for xenbus_printf
authorZhouyang Jia <jiazhouyang09@gmail.com>
Thu, 14 Jun 2018 23:34:52 +0000 (07:34 +0800)
committerJuergen Gross <jgross@suse.com>
Tue, 19 Jun 2018 12:27:41 +0000 (14:27 +0200)
commit84c029a73327cef571eaa61c7d6e67e8031b52ec
tree1507bbe45e47955e2d88a829c195a790682f036d
parent1fe83888a2b776c204cb06629700adfb8e9cc123
xen: add error handling for xenbus_printf

When xenbus_printf fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling xenbus_printf.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/manage.c