diff options
| author | Xianting Tian <xianting.tian@linux.alibaba.com> | 2022-01-12 20:33:34 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-08 18:15:27 +0100 |
| commit | 33dee0ad3f969dcec66a4cf23371656c3dc96148 (patch) | |
| tree | 884862d8353f41566f448722b6a2a1d8d700cb04 /drivers/hwmon | |
| parent | e7b6b9ea12cf1f51604cfbda4b0a66759e18c6ef (diff) | |
| download | linux-33dee0ad3f969dcec66a4cf23371656c3dc96148.tar.gz linux-33dee0ad3f969dcec66a4cf23371656c3dc96148.tar.bz2 linux-33dee0ad3f969dcec66a4cf23371656c3dc96148.zip | |
drm/msm: Fix wrong size calculation
commit 0a727b459ee39bd4c5ced19d6024258ac87b6b2e upstream.
For example, memory-region in .dts as below,
reg = <0x0 0x50000000 0x0 0x20000000>
We can get below values,
struct resource r;
r.start = 0x50000000;
r.end = 0x6fffffff;
So the size should be:
size = r.end - r.start + 1 = 0x20000000
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Fixes: 072f1f9168ed ("drm/msm: add support for "stolen" mem")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220112123334.749776-1-xianting.tian@linux.alibaba.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions
