projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/i915: Use struct resource for memory region IO as well
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
drm
/
i915
/
i915_gpu_error.c
diff --git
a/drivers/gpu/drm/i915/i915_gpu_error.c
b/drivers/gpu/drm/i915/i915_gpu_error.c
index
d04660b
..
a0b784e
100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/
drivers/gpu/drm/i915/i915_gpu_error.c
@@
-1157,7
+1157,7
@@
i915_vma_coredump_create(const struct intel_gt *gt,
dma_addr_t offset = dma - mem->region.start;
void __iomem *s;
- if (offset + PAGE_SIZE >
mem->io_size
) {
+ if (offset + PAGE_SIZE >
resource_size(&mem->io)
) {
ret = -EINVAL;
break;
}