git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pktgen: do not access flows[] beyond its length
[safe/jmp/linux-2.6]
/
net
/
core
/
pktgen.c
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index
3779c14
..
0666a82
100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-2447,7
+2447,7
@@
static inline void free_SAs(struct pktgen_dev *pkt_dev)
if (pkt_dev->cflows) {
/* let go of the SAs if we have them */
int i = 0;
- for (; i < pkt_dev->
nflows; i++)
{
+ for (; i < pkt_dev->
cflows; i++)
{
struct xfrm_state *x = pkt_dev->flows[i].x;
if (x) {
xfrm_state_put(x);