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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:01 +0000 (13:09 +0200)
commit91e1bb748bcc9fb1737eacb1c26abd62a2ae7076
tree9cf47be78770fe5debc4e41db7e05762a721513e
parent586ae5694e375ceced8abafe1501eece4e922852
scsi: xen-scsifront: add error handling for xenbus_printf

[ Upstream commit 93efbd39870474cc536b9caf4a6efeb03b0bc56f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/xen-scsifront.c