]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap
authorJohn Sheu <sheu@google.com>
Tue, 12 Feb 2013 01:50:24 +0000 (17:50 -0800)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 19 Feb 2013 10:49:28 +0000 (16:19 +0530)
commit676414348e3717986e7c198a82d0c49aecf01d7a
treef4576002b846251ccf36c3b9846b0bd45fe08113
parent58d7343609e32a727a01647614edad1632947a7e
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: John Sheu <sheu@google.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c