scsi: xen-scsifront: add error handling for xenbus_printf
authorZhouyang Jia <jiazhouyang09@gmail.com>
Fri, 15 Jun 2018 17:05:01 +0000 (01:05 +0800)
committerJuergen Gross <jgross@suse.com>
Tue, 19 Jun 2018 12:54:41 +0000 (14:54 +0200)
commit93efbd39870474cc536b9caf4a6efeb03b0bc56f
treec9ee00ffa086ac4111448d349a646363779834aa
parent6e3cc2a6e259f49f5817d1561109832eff90f8e4
scsi: xen-scsifront: 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/scsi/xen-scsifront.c