xen/pvcalls: check for xenbus_read() errors
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 5 Dec 2017 14:38:43 +0000 (17:38 +0300)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 6 Dec 2017 14:44:43 +0000 (09:44 -0500)
commit8c71fa88f7778eb093ee22cba13a3813a82113ad
tree4a5396a6028cbb51a5caf2397f61f6853a30f5da
parent646d944c2ef5a3b298c4e150494c71b9272d8b47
xen/pvcalls: check for xenbus_read() errors

Smatch complains that "len" is uninitialized if xenbus_read() fails so
let's add some error handling.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-front.c