]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix size calculation using resource_size()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Aug 2018 11:57:24 +0000 (14:57 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:33 +0000 (22:12 +1000)
commitca78c68e08bc328c5efbe4b9708ef37f6d418dd6
treee9aa55a3f2c35a300251b5defaeb9c54118574d2
parent2b70d5cad40bf26079185d1d7377790c8eedc1bb
powerpc: Fix size calculation using resource_size()

The problem is the the calculation should be "end - start + 1" but the
plus one is missing in this calculation.

Fixes: f74fdfb53104 ("powerpc: add support for MPIC message register API")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/mpic_msgr.c