From: Dan Carpenter Date: Tue, 26 Feb 2013 10:04:51 +0000 (+0300) Subject: ray_cs: read past the end of the array X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dcc26e37c55b9db2f3a0ea6e4b931e37ca286d2;p=pandora-kernel.git ray_cs: read past the end of the array "translate" should either be set or disabled. We also use it an offset into the framing[] array when we're generating the proc file. Framing looks like this: static const char *framing[] = { "Encapsulation", "Translation" } So when we're setting translate we need to restrict the values to either 1 or 0 or it can an out of bounds read. Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville --- Reading git-diff-tree failed