Skip to content
Commit 495c10cc authored by John Sheu's avatar John Sheu Committed by Sumit Semwal
Browse files

CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap



Callers to dma_buf_mmap expect to fput() the vma struct's vm_file
themselves on failure.  Not restoring the struct's data on failure
causes a double-decrement of the vm_file's refcount.

Signed-off-by: default avatarJohn Sheu <sheu@google.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
parent f00b4dad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment