xen: xenbus_dev_frontend: Verify body of XS_TRANSACTION_END
authorSimon Gaiser <simon@invisiblethingslab.com>
Thu, 15 Mar 2018 02:43:22 +0000 (03:43 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 21 Mar 2018 12:28:53 +0000 (08:28 -0400)
commit8fe5ab411209ac6e2c7021131e622fd004506d1a
treea0bc74504940ebc1b28da3c873beeb8785ddb5bd
parentb93008d1ac657dc67819330c5995e65e7c3e7978
xen: xenbus_dev_frontend: Verify body of XS_TRANSACTION_END

By guaranteeing that the argument of XS_TRANSACTION_END is valid we can
assume that the transaction has been closed when we get an XS_ERROR
response from xenstore (Note that we already verify that it's a valid
transaction id).

Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_dev_frontend.c