]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32d3ddefd01e9987c4e5abf35b607bf1dede20b9
tree8a0d21069d02bf3b250f0f5b2cd980c2062e31d5
parent999e09d7677b6c4541126f67f68a3545ecfd17ae
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