From: "Jason A. Donenfeld" Jason@zx2c4.com
This is already set by anon_inode_getfile(), since dma_buf_fops has non-NULL ->llseek, so we don't need to set it here too.
Acked-by: Daniel Vetter daniel.vetter@ffwll.ch Acked-by: Sumit Semwal sumit.semwal@linaro.org Signed-off-by: Jason A. Donenfeld Jason@zx2c4.com Signed-off-by: Al Viro viro@zeniv.linux.org.uk (cherry picked from commit c9eb2d427c1c428e4f4e29f1e635b9a83236c015) Cc: stable@vger.kernel.org Signed-off-by: Saeed Mirzamohammadi saeed.mirzamohammadi@oracle.com --- drivers/dma-buf/dma-buf.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 968c3df2810e..3c3d0e2258b4 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c @@ -584,7 +584,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) goto err_dmabuf; }
- file->f_mode |= FMODE_LSEEK; dmabuf->file = file;
mutex_init(&dmabuf->lock);