ipw2200: prevent alloc of unspecified size on stack
commit412e9e7800360ec93b6ba319b30666f6bfc721bd
authorReinette Chatre <reinette.chatre@intel.com>
Wed, 19 Dec 2007 06:01:02 +0000 (18 22:01 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Dec 2007 02:31:01 +0000 (19 21:31 -0500)
tree03f8c45a68c123f8a290c567f07f12d500472ea5
parentb24d22b1d12c436a86282347868785207cff8a88
ipw2200: prevent alloc of unspecified size on stack

if log_len is larger than 4K then we are killing the stack.
allocate on heap instead and limit size to what practically can
be used (PAGE_SIZE)

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2200.c