diff options
author | Al Cooper <alcooperx@gmail.com> | 2013-02-05 15:08:10 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-13 13:49:42 +0100 |
commit | 221b1bd3d409b14e8764d8f40994b71ae6887d18 (patch) | |
tree | 6e2088095b662831e8851e77725b5e9d156e382e /drivers/mtd/nand/davinci_nand.c | |
parent | mtd: physmap_of: Convert device allocation to managed devm_kzalloc() (diff) | |
download | linux-221b1bd3d409b14e8764d8f40994b71ae6887d18.tar.xz linux-221b1bd3d409b14e8764d8f40994b71ae6887d18.zip |
mtd: mtd_torturetest can cause stack overflows
mtd_torturetest uses the module parm "ebcnt" to control the size of a
stack based array of int's. When "ebcnt" is large, Ex: 1000, it
causes stack overflows on systems with small kernel stacks. The fix
is to move the array from the stack to kmalloc memory.
Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand/davinci_nand.c')
0 files changed, 0 insertions, 0 deletions