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:12:29 +0000 (13:12 +0200)
commit2941d96a731a52b2aff8f4bf6fc7e7f97ed5274f
treec7416368a6dc00b943c9059fdbca8fa3c1b4caeb
parent10a4d81876f31c72201a05f23dbce28de64e86cd
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