mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
A separate bug caused EXPECT_BUG to always return true without actually calling the corresponding test code. This hid some issues in the buddy allocator unit where the fini() operation was called several times while expecting it to call BUG(). Doing so caused the mutex unlock operation to not be called, which caused a deadlock for all subsequent calls. The fix is to explicitly release the mutex after each call to fini() that expects a BUG(). JIRA NVGPU-3562 Change-Id: Ic26058a272c616d2a6052d319f38a4d4dc33ef1c Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2126874 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>