pktgen: do not access flows[] beyond its length
authorFlorian Westphal <fw@strlen.de>
Thu, 21 May 2009 22:07:12 +0000 (15:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Jun 2009 03:01:17 +0000 (20:01 -0700)
commit7c2f7a2635a13a4b8c1efb93f599b2a4121f8b6d
treea7d9fe624458a45363cfc955edf67879ce99199d
parentf3a39d0207da288d2ff37d7a2890f58a483324ec
pktgen: do not access flows[] beyond its length

[ Upstream commit 5b5f792a6a9a2f9ae812d151ed621f72e99b1725 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/pktgen.c