Re: [PATCH 10/17] arch/ia64/kvm: Add missing spin_unlock

From: Avi Kivity
Date: Thu May 27 2010 - 09:20:40 EST


On 05/26/2010 06:57 PM, Julia Lawall wrote:
From: Julia Lawall<julia@xxxxxxx>

Add a spin_unlock missing on the error path.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

//<smpl>
@@
expression E1;
@@

* spin_lock(E1,...);
<+... when != E1
if (...) {
... when != E1
* return ...;
}
...+>
* spin_unlock(E1,...);
//</smpl>


Applied, thanks.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/