From: Ben Hutchings Date: Mon, 27 May 2013 18:07:19 +0000 (+0100) Subject: sd: Fix parsing of 'temporary ' cache mode prefix X-Git-Tag: v3.2.49~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be45f4eba5d9c264dacd10dee0ba23ec14624911;p=pandora-kernel.git sd: Fix parsing of 'temporary ' cache mode prefix commit 2ee3e26c673e75c05ef8b914f54fadee3d7b9c88 upstream. Commit 39c60a0948cc '[SCSI] sd: fix array cache flushing bug causing performance problems' added temp as a pointer to "temporary " and used sizeof(temp) - 1 as its length. But sizeof(temp) is the size of the pointer, not the size of the string constant. Change temp to a static array so that sizeof() does what was intended. Signed-off-by: Ben Hutchings Signed-off-by: James Bottomley --- Reading git-diff-tree failed