]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xenbus: remove transaction holder from list before freeing
authorJan Beulich <JBeulich@suse.com>
Tue, 4 Apr 2017 12:27:22 +0000 (06:27 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:37:55 +0000 (21:37 -0700)
commitdc944e5b7e7fa19bf4b1a65f21cbb7607f531ae6
treec1297fcb05fcb0abefa1c50e362c4688ed5d64be
parentc8a9ecd73aeda1edccc82b5905bfc31a95d7b9b9
xenbus: remove transaction holder from list before freeing

After allocation the item is being placed on the list right away.
Consequently it needs to be taken off the list before freeing in the
case xenbus_dev_request_and_reply() failed, as in that case the
callback (xenbus_dev_queue_reply()) is not being called (and if it
was called, it should do both).

Fixes: 5584ea250ae44f929feb4c7bd3877d1c5edbf813
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
OraBug: 26662731

(cherry picked from commit ac4cde398a96c1d28b1c28a0f69b6efd892a1c8a)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/xenbus/xenbus_dev_frontend.c