OSDN Git Service

xenbus: Add proper handling of XS_ERROR from Xenbus for transactions.
authorJennifer Herbert <Jennifer.Herbert@citrix.com>
Thu, 5 Feb 2015 14:45:40 +0000 (14:45 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 5 Feb 2015 15:04:46 +0000 (15:04 +0000)
commita2e75bc2ee207351e6806e77a5379c6c1dd4598a
tree3d2deab1b547ecb3fb46d4e0ce6bf46a221d6ae4
parentdab069c61aa386f6a46c620f3a1075a4818f285b
xenbus: Add proper handling of XS_ERROR from Xenbus for transactions.

If Xenstore sends back a XS_ERROR for TRANSACTION_END, the driver BUGs
because it cannot find the matching transaction in the list.  For
TRANSACTION_START, it leaks memory.

Check the message as returned from xenbus_dev_request_and_reply(), and
clean up for TRANSACTION_START or discard the error for
TRANSACTION_END.

Signed-off-by: Jennifer Herbert <Jennifer.Herbert@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xenbus/xenbus_dev_frontend.c