Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12d75ae7 authored by Jennifer Herbert's avatar Jennifer Herbert Committed by Sasha Levin
Browse files

xenbus: Add proper handling of XS_ERROR from Xenbus for transactions.



[ Upstream commit a2e75bc2ee207351e6806e77a5379c6c1dd4598a ]

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: default avatarJennifer Herbert <Jennifer.Herbert@citrix.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent aad82778
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment