xen: xenbus: Catch closing of non existent transactions
authorSimon Gaiser <simon@invisiblethingslab.com>
Thu, 15 Mar 2018 02:43:21 +0000 (03:43 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 21 Mar 2018 12:28:51 +0000 (08:28 -0400)
commitb93008d1ac657dc67819330c5995e65e7c3e7978
tree8a0d21069d02bf3b250f0f5b2cd980c2062e31d5
parent2a22ee6c3ab1d761bc9c04f1e4117edd55b82f09
xen: xenbus: Catch closing of non existent transactions

Users of the xenbus functions should never close a non existent
transaction (for example by trying to closing the same transaction
twice) but better catch it in xs_request_exit() than to corrupt the
reference counter.

Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_xs.c