mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
The parameters of dma_free_coherent() should be in order of: 1) Device pointer 2) Size 3) CPU virtual address 4) Device address However, the dma_free_coherent() here mixes with the size with the device address which will trigger kernel bugs. So this patch fixes the bug by exchanging those two. Bug 200444660 Change-Id: Ib0b7855be3868908a4fd59beb938f8bec9e6daee Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2098218 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>