diff options
author | Fedora Kernel Team <kernel-team@fedoraproject.org> | 2021-02-16 19:22:36 +0300 |
---|---|---|
committer | Fu Wei <fu.wei@linaro.org> | 2021-02-16 19:22:36 +0300 |
commit | 89362d176113d6aad13e750e0c32d5982bf5a9da (patch) | |
tree | 9f8b30fcd7f1d1eff414cbab05e736b0ef4fff71 /drivers/dma-buf | |
parent | 2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff) | |
download | linux-89362d176113d6aad13e750e0c32d5982bf5a9da.tar.xz |
Stable update
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r-- | drivers/dma-buf/dma-resv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-resv.c b/drivers/dma-buf/dma-resv.c index 1c8f2581cb09..1187e5e80ede 100644 --- a/drivers/dma-buf/dma-resv.c +++ b/drivers/dma-buf/dma-resv.c @@ -200,7 +200,7 @@ int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences) max = max(old->shared_count + num_fences, old->shared_max * 2); } else { - max = 4; + max = max(4ul, roundup_pow_of_two(num_fences)); } new = dma_resv_list_alloc(max); |