qlcnic: using too much stack
commite88db3bd46801a9c2cd0ac5e46122d47c285faec
authorDan Carpenter <error27@gmail.com>
Mon, 9 Aug 2010 21:49:36 +0000 (9 21:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 08:34:36 +0000 (10 01:34 -0700)
tree090576e6117fa71d37d876e3b9143a63b649ce2d
parentca315ac22c1a91fc8047254b250599890d8a7b30
qlcnic: using too much stack

qlcnic_pci_info structs are 128 bytes so an array of 8 uses 1024 bytes.
That's a lot if you run with 4K stacks.  I allocated them with kcalloc()
instead.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c