pktgen: do not access flows[] beyond its length
authorFlorian Westphal <fw@strlen.de>
Thu, 21 May 2009 22:07:12 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2009 22:07:12 +0000 (15:07 -0700)
commit5b5f792a6a9a2f9ae812d151ed621f72e99b1725
tree5fe7c961a9f7a14cdae342311fa9a00e8155cb86
parentc40499e04b2005e61f989824251f9343b55f96bb
pktgen: do not access flows[] beyond its length

typo -- pkt_dev->nflows is for stats only, the number of concurrent
flows is stored in cflows.

Reported-By: Vladimir Ivashchenko <hazard@francoudi.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c