[PATCH] CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap

2013-02-12 Thread Sumit Semwal
+dri-devel ML > > > On 12 February 2013 07:20, wrote: >> >> From: John Sheu >> >> 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: Jo

[PATCH] CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap

2013-02-12 Thread Sumit Semwal
+dri-devel ML On 12 February 2013 07:20, wrote: > From: John Sheu > > 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 > >

Re: [PATCH] CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap

2013-02-12 Thread Sumit Semwal
+dri-devel ML > > > On 12 February 2013 07:20, wrote: >> >> From: John Sheu >> >> 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: Jo

Re: [PATCH] CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap

2013-02-12 Thread Sumit Semwal
+dri-devel ML On 12 February 2013 07:20, wrote: > From: John Sheu > > 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 > >