]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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>
Wed, 27 Feb 2013 09:44:02 +0000 (15:14 +0530)
commit495c10cc1c0c359871d5bef32dd173252fc17995
tree5cc942ec2c74496dd3774dffff5cdde67cd75ae0
parentf00b4dad9d9eb001a04cf72e8351a2a1b9e99322
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