]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20bac4953cfff96699ded279594ad6a3a6468c85
tree5fe7c961a9f7a14cdae342311fa9a00e8155cb86
parentb32c20f93320526ccc6901ac1dbdb68b579c7f86
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