diff options
| author | Dan Carpenter <[email protected]> | 2024-02-13 18:05:01 +0000 |
|---|---|---|
| committer | Laurentiu Palcu <[email protected]> | 2024-02-28 09:16:59 +0000 |
| commit | 9cb3542aeeac31b3dd6b5a7d58b9b7d6fe9fd2bc (patch) | |
| tree | b4c47a19a76715a443443f67df369964ed1400cd /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | firmware/sysfb: fix an error code in sysfb_init() (diff) | |
| download | kernel-9cb3542aeeac31b3dd6b5a7d58b9b7d6fe9fd2bc.tar.gz kernel-9cb3542aeeac31b3dd6b5a7d58b9b7d6fe9fd2bc.zip | |
drm/imx/dcss: fix resource size calculation
The resource is inclusive of the ->start and ->end addresses so this
calculation is not correct. It should be "res->end - res->start + 1".
Use the resource_size() to do the calculation.
Fixes: 90393c9b5408 ("drm/imx/dcss: request memory region")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Laurentiu Palcu <[email protected]>
Signed-off-by: Laurentiu Palcu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
