diff options
| author | Baineng Shou <shoubaineng@gmail.com> | 2026-10-14 10:49:09 +0800 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2026-10-14 14:35:48 +0200 |
| commit | 91f52e99824b0beebb48cad51bbda81437af8664 (patch) | |
| tree | d66f2304ab36e98f2cecbbd11d5677636040b7bc /rust/kernel/alloc | |
| parent | dfc3c7b84d43e7de918686e5cd7dd49196a5f45e (diff) | |
dma-buf/test: add KUnit case for dma_fence_dedup_array() empty input
Add a KUnit case verifying that dma_fence_dedup_array() returns 0,
not 1, when called with num_fences == 0. This locks down the
contract documented in the kernel-doc and prevents a regression
of commit 77a9298741f8 ("dma-fence: Make dma_fence_dedup_array()
robust against 0-count input").
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Baineng Shou <shoubaineng@gmail.com>
Link: https://lore.kernel.org/r/20261014024909.1769215-1-shoubaineng@gmail.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
