xen/scsiback: add error handling for xenbus_printf
authorZhouyang Jia <jiazhouyang09@gmail.com>
Sat, 16 Jun 2018 00:14:37 +0000 (08:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:01 +0000 (13:09 +0200)
commit2e62d135dd530d7144f55c6ce84e2ec29f48596a
treee8d967a7bc697934cb792673e81e9a67ee8e55cf
parent91e1bb748bcc9fb1737eacb1c26abd62a2ae7076
xen/scsiback: add error handling for xenbus_printf

[ Upstream commit 7c63ca24c878e0051c91904b72174029320ef4bd ]

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/xen/xen-scsiback.c