]> git.baikalelectronics.ru Git - kernel.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)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 4 Apr 2017 14:11:06 +0000 (10:11 -0400)
commitfa7b20e83232ddc8d5b0dcca1601c2581ed42d68
tree6d034541449c0a0b15e560f34e7da6538d325d40
parent7aed9b36a8948f3bcdda03b0dfc33825dada85dc
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: 342037acd6342a2c708390dd41193f3a479316ad
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_dev_frontend.c