]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xenbus: don't look up transaction IDs for ordinary writes
authorJan Beulich <JBeulich@suse.com>
Mon, 15 Aug 2016 15:02:38 +0000 (09:02 -0600)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 08:04:33 +0000 (04:04 -0400)
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 <rschuetz@uni-koblenz.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Richard Schütz <rschuetz@uni-koblenz.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 9a035a40f7f3f6708b79224b86c5777a3334f7ea)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937

drivers/xen/xenbus/xenbus_dev_frontend.c

index 464ee7e05901f06be37f9a33fe07b6fd71684bbf..32f8186ca92f02c4e41ca04afaaee0600a289670 100644 (file)
@@ -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;