summaryrefslogtreecommitdiff
path: root/net/netfilter/ipvs
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-08-24 04:38:33 (GMT)
committerDavid S. Miller <davem@davemloft.net>2010-08-25 23:36:49 (GMT)
commit8d34e7d6f38fce1c7e595404295494cd1eaba3eb (patch)
treed8b651d02724411e1b3acd5c9ad5801f9a6b83a5 /net/netfilter/ipvs
parent21ff2929edc89397cc4c621d3c3f842994640acd (diff)
downloadlinux-fsl-qoriq-8d34e7d6f38fce1c7e595404295494cd1eaba3eb.tar.xz
drivers/net/irda: Eliminate memory leak
dev_alloc_skb allocates some memory, so that memory should be freed before leaving the function in an error case. Corrected some typos in a nearby comment as well. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ local idexpression x; expression E; identifier f1; iterator I; @@ x = dev_alloc_skb(...); <... when != x when != true (x == NULL || ...) when != if (...) { <+...x...+> } when != I (...) { <+...x...+> } ( x == NULL | x == E | x->f1 ) ...> * return ...; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/ipvs')
0 files changed, 0 insertions, 0 deletions