From: Thomas Jarosch Date: Sat, 29 Oct 2011 13:45:56 +0000 (+0200) Subject: MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check X-Git-Tag: v3.2-rc3~50^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=617d1017545c27a56229483cc1d689eff6c38561;p=pandora-kernel.git MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check Cause is a misplaced bracket. The code strlen(buf+1) will be two bytes less than strlen(buf)+1 The +1 is in this code to reserve space for an additional space character. [ralf@linux-mips.org: Thomas' original patch fixed the issue only for Yosemite but the same bug exists also in Emma.] Signed-off-by: Thomas Jarosch Patchwork: https://patchwork.linux-mips.org/patch/2861/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed