# \[trivial PATCH 2/2\] arm: mach-u300/gpio: Fix mem\_region resource size miscalculations

- From: Linus Walleij \<hidden\>
- Date: 2011-03-23 20:07:29 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2011/03/3693553
- Thread: https://ratatoskr.run/linux-arm-kernel/2011/03/3693545/t.md

```text
2011/3/23 Joe Perches [ref]:

> Convert off-by-1 r->end - r->start to resource_size(r)
>
> Signed-off-by: Joe Perches <joe@perches.com>

Oh man, there was one of these lurking in my own beloved mach-u300.
How embarrassing. Thanks for catching!

Acked-by: Linus Walleij <redacted>

Yours,
Linus Walleij
```
