Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9e6cdac1 authored by Archit Taneja's avatar Archit Taneja Committed by Liam Mark
Browse files

staging: android: ion: Avoid calling free_duped_table() twice



Currently, the duplicated sg table is freed in the detach() and
the error path of map_dma_buf() ion's dma_buf_ops.

If a call to dma_buf_map_attachment() fails, the importer is
expected to call dma_buf_detach() to remove the attachment. This
will result in us trying to free the duped sg table twice.

Don't call free_duped_table() in ion_map_dma_buf() to avoid this.

Change-Id: I85a086497f5ef47440671ff31f25e70ac6abb0f8
Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Reviewed-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: df794cfb
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


[lmark@codeaurora.org: merging with msm-specific changes]
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 656a4139
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment