Re: [PATCH] powerpc: fix size calculation using resource_size()

2018-08-08 Thread Tyrel Datwyler
On 08/08/2018 04:57 AM, Dan Carpenter wrote: > 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 > --- > Static analysis.

[PATCH] powerpc: fix size calculation using resource_size()

2018-08-08 Thread Dan Carpenter
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 --- Static analysis. Not tested. diff --git a/arch/powerpc/sysdev/mpic_msgr.c b