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

Commit 4306acd0 authored by Jan Beulich's avatar Jan Beulich Committed by Sasha Levin
Browse files

xenbus: don't look up transaction IDs for ordinary writes



[ Upstream commit 9a035a40f7f3f6708b79224b86c5777a3334f7ea ]

This should really only be done for XS_TRANSACTION_END messages, or
else at least some of the xenstore-* tools don't work anymore.

Fixes: 0beef634b8 ("xenbus: don't BUG() on user mode induced condition")
Reported-by: default avatarRichard Schütz <rschuetz@uni-koblenz.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Tested-by: default avatarRichard Schütz <rschuetz@uni-koblenz.de>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 189f6d32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ static int xenbus_write_transaction(unsigned msg_type,
			rc = -ENOMEM;
			goto out;
		}
	} else {
	} else if (msg_type == XS_TRANSACTION_END) {
		list_for_each_entry(trans, &u->transactions, list)
			if (trans->handle.id == u->u.msg.tx_id)
				break;