bnx2x: allocate memory dynamically in ethtool self-test.
authorMintz Yuval <yuvalmin@broadcom.com>
Wed, 15 Feb 2012 02:10:27 +0000 (02:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2012 20:30:49 +0000 (15:30 -0500)
commitafa13b4b94bc4b3247fa46dd8698c8dbfe1a615c
tree7b66cb56a7db3fcb8e0bd587a31cc17f8cff690d
parent817a8aa8cfa1ebfb7bf27afb53ebb1ec3d49b564
bnx2x: allocate memory dynamically in ethtool self-test.

From: Merav Sicron <meravs@broadcom.com>

Current ethtool self tests usesa large buffer on stack. This patch replaces
that array by dynamically allocated memory

Signed-off-by: Merav Sicron <meravs@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c