From: Axel Lin Date: Wed, 13 Oct 2010 02:44:39 +0000 (+0800) Subject: mfd: Fix off-by-one value range checking for tps6507x X-Git-Tag: v2.6.37-rc1~52^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d6aa08dd3e004df6a6e63a61698d834a191ad3;p=pandora-kernel.git mfd: Fix off-by-one value range checking for tps6507x If bytes == (TPS6507X_MAX_REGISTER + 1), we have a buffer overflow when doing memcpy(&msg[1], src, bytes). Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed