summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-20 17:06:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-20 17:06:25 +0200
commite848c0dee50ba029083d8a83a38d1c4536d37362 (patch)
tree15c06c75a8f7724588e1b5bebbc2aa4684ef0eef /pfinet
parent3bbb218e2682de2d566cc66115a108a56c04f42c (diff)
pfinet: Fix call to kfree_s
kfree_s expects a pointer and a size argument. Currently the sizeof(cache) is used as size argument, this is certainly not what was intented. For reference, this code was present in Linux up to version 2.3.14 and was replaced in 2.3.15. Found using coccinelle and https://raw.github.com/coccinelle/coccinellery/master/sz/sz.cocci. * pfinet/linux-src/net/ipv4/ipmr.c (ipmr_cache_delete): Fix kfree_s call.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/linux-src/net/ipv4/ipmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/linux-src/net/ipv4/ipmr.c b/pfinet/linux-src/net/ipv4/ipmr.c
index cd51cd9a..08d1a364 100644
--- a/pfinet/linux-src/net/ipv4/ipmr.c
+++ b/pfinet/linux-src/net/ipv4/ipmr.c
@@ -332,7 +332,7 @@ static void ipmr_cache_delete(struct mfc_cache *cache)
kfree_skb(skb);
}
}
- kfree_s(cache,sizeof(cache));
+ kfree_s(cache,sizeof(*cache));
}
/*