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:12:29 +0000 (13:12 +0200)
commitc0a01787462a3a370006cdf5d14d7e7967ad59aa
tree9847876c6cb81f9a872a20f1fa0cda3b7b125ced
parent2941d96a731a52b2aff8f4bf6fc7e7f97ed5274f
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