mmc: msm_sdcc: Reduce stack pressure in debugfs code
msmsdcc_dbg_state_read() allocates a 1024 byte array on the stack
to fill in some debug information. There isn't more than a couple
hundred bytes actually used though so reduce the on stack array
to a more conservative value. This avoids problems with big stack
frames in the kernel.
Change-Id: I6ea03b843a31ece2c54b360bf144c97c02672c78
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 4040c32..0410473 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -4638,7 +4638,7 @@
size_t count, loff_t *ppos)
{
struct msmsdcc_host *host = (struct msmsdcc_host *) file->private_data;
- char buf[1024];
+ char buf[200];
int max, i;
i = 0;