mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-23 08:55:56 -04:00
drm/ttm: fix logic inversion in ttm_eu_reserve_buffers
That should have been max, not min.
Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: c8d4c18bfb ("dma-buf/drivers: make reserving a shared slot mandatory v4")
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220411134537.2854-1-christian.koenig@amd.com
This commit is contained in:
@@ -101,7 +101,7 @@ int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
|
||||
continue;
|
||||
}
|
||||
|
||||
num_fences = min(entry->num_shared, 1u);
|
||||
num_fences = max(entry->num_shared, 1u);
|
||||
if (!ret) {
|
||||
ret = dma_resv_reserve_fences(bo->base.resv,
|
||||
num_fences);
|
||||
|
||||
Reference in New Issue
Block a user