diff options
| author | Dan Carpenter <[email protected]> | 2023-10-11 11:01:48 +0300 |
|---|---|---|
| committer | Heiko Stuebner <[email protected]> | 2023-10-16 15:05:14 +0200 |
| commit | 6471da5ee311d53ef46eebcb7725bc94266cc0cf (patch) | |
| tree | e4e7f7d91df3fec7feb4e41e1c82a2fb6c76b48f /tools/perf/scripts/python/task-analyzer.py | |
| parent | 15fe53be46eaf4f6339cd433972ecc90513e3076 (diff) | |
drm/rockchip: Fix type promotion bug in rockchip_gem_iommu_map()
The "ret" variable is declared as ssize_t and it can hold negative error
codes but the "rk_obj->base.size" variable is type size_t. This means
that when we compare them, they are both type promoted to size_t and the
negative error code becomes a high unsigned value and is treated as
success. Add a cast to fix this.
Fixes: 38f993b7c59e ("drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions