[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.1-testing] tmem: properly drop lock on error path in do_tmem_op()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1348568841 -7200 # Node ID 91bf384afc83fac5334535aa87dee17d6a07de98 # Parent 397cac9587fec61ee71b2ccf09120a54ecb5b4f8 tmem: properly drop lock on error path in do_tmem_op() Reported-by: Tim Deegan <tim@xxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> xen-unstable changeset: 25857:109ea6a0c23a xen-unstable date: Tue Sep 11 12:18:26 UTC 2012 --- diff -r 397cac9587fe -r 91bf384afc83 xen/common/tmem.c --- a/xen/common/tmem.c Tue Sep 25 12:26:57 2012 +0200 +++ b/xen/common/tmem.c Tue Sep 25 12:27:21 2012 +0200 @@ -2662,13 +2662,19 @@ EXPORT long do_tmem_op(tmem_cli_op_t uop if ( client != NULL && tmh_client_is_dying(client) ) { rc = -ENODEV; - goto out; + if ( tmh_lock_all ) + goto out; + simple_error: + errored_tmem_ops++; + return rc; } if ( unlikely(tmh_get_tmemop_from_client(&op, uops) != 0) ) { printk("tmem: can't get tmem struct from %s\n",client_str); rc = -EFAULT; + if ( !tmh_lock_all ) + goto simple_error; goto out; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |