From: Julia Lawall Date: Wed, 29 Dec 2010 04:01:03 +0000 (+0000) Subject: drivers/atm/atmtcp.c: add missing atm_dev_put X-Git-Tag: v2.6.37~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9556f9a1abdc56a179ac7ba6053469373b6de0f;p=pandora-kernel.git drivers/atm/atmtcp.c: add missing atm_dev_put The earlier call to atm_dev_lookup increases the reference count of dev, so decrease it on the way out. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, E; constant C; @@ x = atm_dev_lookup(...); ... when != false x != NULL when != true x == NULL when != \(E = x\|x = E\) when != atm_dev_put(dev); *return -C; // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed