mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Instead of using kmalloc() to get a buffer for storing the computed flags string during DMA debugging use a stack buffer. This removes the need for a kmalloc() call. The problem with kmalloc() is that if a dma_alloc() fails due to being out of memory the kmalloc may likely fail, too! Also simplify the logic now that there's no need to do any error checking for a kmalloc() call. Change-Id: I45c1fd16658212188a1206a2edf17b28f3c06c9e Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1976440 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
12 KiB
12 KiB