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

No differences found