]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/message/i2o/i2o_config.c: bound allocation
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Jul 2012 21:41:30 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:17 +0000 (17:25 -0700)
commitd5c664edb71229f3840536e96a98373582b2f657
tree0bc64028f987e7777ed5002f0b4debf4422c28ad
parent06146bbfa9b81d7e79c570941b8fe40e875a5734
drivers/message/i2o/i2o_config.c: bound allocation

Fix a case where users can try to allocate arbitarily large amounts of
memory. 64K is overkill for a config request so apply an upper bound.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/message/i2o/i2o_config.c