Commit 03cebefe authored by Jan Beulich's avatar Jan Beulich Committed by Greg Kroah-Hartman

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

commit 9a035a40 upstream.

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: 0beef634 ("xenbus: don't BUG() on user mode induced condition")
Reported-by: default avatarRichard Schütz <rschuetz@uni-koblenz.de>
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>
Cc: "M. Vefa Bicakci" <m.v.b@runbox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent edd2b5fd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment