From: Julia Lawall Date: Wed, 29 Aug 2012 06:49:11 +0000 (+0000) Subject: ipvs: fix error return code X-Git-Tag: v3.6-rc5~20^2~8^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a54e939d8c2647c711ef2369c3e73c3b7f3028c;p=pandora-kernel.git ipvs: fix error return code 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/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // Signed-off-by: Julia Lawall Acked-by: Simon Horman Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed