projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c40499e
)
pktgen: do not access flows[] beyond its length
author
Florian Westphal
<
[email protected]
>
Thu, 21 May 2009 22:07:12 +0000
(15:07 -0700)
committer
David S. Miller
<
[email protected]
>
Thu, 21 May 2009 22:07:12 +0000
(15:07 -0700)
typo -- pkt_dev->nflows is for stats only, the number of concurrent
flows is stored in cflows.
Reported-By: Vladimir Ivashchenko <
[email protected]
>
Signed-off-by: Florian Westphal <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index 3779c1438c11c84613f5ba9b40619907c9a18a9d..0666a827bc62d3a9cd067c744c650f4d6337d563 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);