From: Mark Brown Date: Sat, 19 Sep 2015 14:00:18 +0000 (-0700) Subject: regmap: debugfs: Ensure we don't underflow when printing access masks X-Git-Tag: omap-for-v4.3/fixes-rc5~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b763ec17ac762470eec5be8ebcc43e4f8b2c2b82;p=pandora-kernel.git regmap: debugfs: Ensure we don't underflow when printing access masks If a read is attempted which is smaller than the line length then we may underflow the subtraction we're doing with the unsigned size_t type so move some of the calculation to be additions on the right hand side instead in order to avoid this. Reported-by: Rasmus Villemoes Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed