summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/88pm860x-i2c.c
diff options
context:
space:
mode:
authorPhil Carmody <ext-phil.2.carmody@nokia.com>2010-04-16 15:00:09 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2010-05-28 01:37:40 +0200
commitfffba64ca37e8f06020f89e878f0d76a8e121c4e (patch)
tree51d6cd2b044aa6a030d7ec321a67b7cc2574e948 /drivers/mfd/88pm860x-i2c.c
parentda1e368032d7ff241b9cf1059fa059d781cfeba7 (diff)
downloadblackbird-op-linux-fffba64ca37e8f06020f89e878f0d76a8e121c4e.tar.gz
blackbird-op-linux-fffba64ca37e8f06020f89e878f0d76a8e121c4e.zip
mfd: Fix error in wm8400 reg cache access check
Accessing num_reg elements in the interval [reg .. reg+num_regs) is permitted if (reg+numregs <= array size), so barf when that excluded upper bound is > array size. The prior -1 would give access to one too many elements. Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/88pm860x-i2c.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud