xen/scsiback: add error handling for xenbus_printf
authorZhouyang Jia <jiazhouyang09@gmail.com>
Sat, 16 Jun 2018 00:14:37 +0000 (08:14 +0800)
committerJuergen Gross <jgross@suse.com>
Tue, 19 Jun 2018 12:54:49 +0000 (14:54 +0200)
commit7c63ca24c878e0051c91904b72174029320ef4bd
tree682bc15c1230921719e5480301f82adae381c9cf
parent93efbd39870474cc536b9caf4a6efeb03b0bc56f
xen/scsiback: 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: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-scsiback.c