From: Jan Beulich Date: Mon, 15 Aug 2016 15:02:38 +0000 (-0600) Subject: xenbus: don't look up transaction IDs for ordinary writes X-Git-Tag: v4.1.12-92~55^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=13a935aa8d43b7cc25c95cda3a211d2b5e7545b1;p=users%2Fjedix%2Flinux-maple.git xenbus: don't look up transaction IDs for ordinary writes 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: Richard Schütz Cc: Signed-off-by: Jan Beulich Tested-by: Richard Schütz Signed-off-by: David Vrabel (cherry picked from commit 9a035a40f7f3f6708b79224b86c5777a3334f7ea) Signed-off-by: Bob Liu Orabug: 24820937 --- diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index 464ee7e05901..32f8186ca92f 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c @@ -318,7 +318,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;