]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit261eba73353edd48b0c0cb7aad59553dfc712ebc
tree0bc64028f987e7777ed5002f0b4debf4422c28ad
parent40251b8eb46e48c011939a3ddf056fe13a223319
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