xenbus: don't BUG() on user mode induced condition
authorJan Beulich <JBeulich@suse.com>
Thu, 7 Jul 2016 07:23:57 +0000 (01:23 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:44 +0000 (01:01 +0000)
commite3ea2576a59f960617808253b6923538328a51a4
tree7293845d7748ae19d103b5b0abc0e8610dc97ebd
parent13e7cda6f0ecffe0266cca709fb8ab9c81dbb2a2
xenbus: don't BUG() on user mode induced condition

commit 0beef634b86a1350c31da5fcc2992f0d7c8a622b upstream.

Inability to locate a user mode specified transaction ID should not
lead to a kernel crash. For other than XS_TRANSACTION_START also
don't issue anything to xenbus if the specified ID doesn't match that
of any active transaction.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Ed Swierk <eswierk@skyportsystems.com>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/xen/xenfs/xenbus.c