OSDN Git Service

powerpc: Fix size calculation using resource_size()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Aug 2018 11:57:24 +0000 (14:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:42:59 +0000 (09:42 +0200)
commitc80c4c93e47ede426bd4ba6ba6ee242862dbdc49
tree551e8cf80d3feb375168a107e6503802594eb131
parent45b7e1d5f20692864a073fae23bb03cec626edfa
powerpc: Fix size calculation using resource_size()

[ Upstream commit c42d3be0c06f0c1c416054022aa535c08a1f9b39 ]

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

Fixes: 8626816e905e ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/sysdev/mpic_msgr.c