diff options
author | Archit Taneja <architt@codeaurora.org> | 2017-05-17 13:45:48 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-18 15:59:38 +0200 |
commit | df794cfbb9660f098412481be7d41bcb8e842cc9 (patch) | |
tree | 5ab03a39d96154832f7acf1d575103825078c2f8 /drivers/s390/net/qeth_l2.h | |
parent | staging: android: ion: Remove ION_FLAG_CACHED_NEEDS_SYNC (diff) | |
download | linux-dev-df794cfbb9660f098412481be7d41bcb8e842cc9.tar.xz linux-dev-df794cfbb9660f098412481be7d41bcb8e842cc9.zip |
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.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390/net/qeth_l2.h')
0 files changed, 0 insertions, 0 deletions