]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: test shared slot allocation when mutex debugging is active
authorChristian König <christian.koenig@amd.com>
Thu, 4 Oct 2018 12:45:17 +0000 (14:45 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 25 Oct 2018 11:45:23 +0000 (13:45 +0200)
commit6cf762c96325d29512bfb1eaf28b20ff1c7665f9
tree128be2859e481029bfa3b33e4903c5b38b489e28
parentd807b4dfc36f39eaee50d24b9a9c984c927a2a94
dma-buf: test shared slot allocation when mutex debugging is active

Set shared_max to the number of shared fences right before we release
the lock.

This way every attempt to add a shared fence without previously
reserving a slot will cause an error.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com>
Link: https://patchwork.kernel.org/patch/10626147/
include/linux/reservation.h