lvs-devel
|
To: | Julia Lawall <Julia.Lawall@xxxxxxx> |
---|---|
Subject: | Re: [PATCH 1/7] ipvs: fix error return code |
Cc: | Wensong Zhang <wensong@xxxxxxxxxxxx>, kernel-janitors@xxxxxxxxxxxxxxx, Simon Horman <horms@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Patrick McHardy <kaber@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, netfilter@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
From: | Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> |
Date: | Thu, 30 Aug 2012 03:34:51 +0200 |
On Wed, Aug 29, 2012 at 06:49:11PM +0200, Julia Lawall wrote: > From: Julia Lawall <Julia.Lawall@xxxxxxx> > > Initialize return variable before exiting on an error path. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // <smpl> > ( > if@p1 (\(ret < 0\|ret != 0\)) > { ... return ret; } > | > ret@p1 = 0 > ) > ... when != ret = e1 > when != &ret > *if(...) > { > ... when != ret = e2 > when forall > return ret; > } > > // </smpl> Applied. Thanks. -- To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [PATCH 1/7] ipvs: fix error return code, Simon Horman |
---|---|
Next by Date: | Re: Multiple load balancers problem, Dmitry Akindinov |
Previous by Thread: | Re: [PATCH 1/7] ipvs: fix error return code, Simon Horman |
Indexes: | [Date] [Thread] [Top] [All Lists] |