mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Fix concurrent access issue in destroy_buffer_table(). The function is freeing buffers while only holding the write lock during hash deletion. Other threads could still be accessing the buffers. Create a temporary list within the lock and then unmap the addresses safely. Bug 5017044 Change-Id: Ib262570aaa19f65c4cb3959123a85c5f66e5db68 Signed-off-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3306890 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Zuyi Hu <zuyih@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Praveen AC <pac@nvidia.com>