]> git.baikalelectronics.ru Git - kernel.git/commit
ipw2200: prevent alloc of unspecified size on stack
authorReinette Chatre <reinette.chatre@intel.com>
Wed, 19 Dec 2007 06:01:02 +0000 (22:01 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Dec 2007 02:31:01 +0000 (21:31 -0500)
commit4858384e1a4d15d3685c105088c881859c4db0a2
tree03f8c45a68c123f8a290c567f07f12d500472ea5
parentde725172ebc4588ae9aec2ba27401c6fff1b0440
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