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: v3.2.73~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd8029559877940f3f3b436f635794120ea3b2b;p=pandora-kernel.git regmap: debugfs: Ensure we don't underflow when printing access masks commit b763ec17ac762470eec5be8ebcc43e4f8b2c2b82 upstream. 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed