>From 9c9739b5942dca1e9238631c1bed48f1b21d8b63 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Thu, 11 Sep 2014 12:42:47 -0400 Subject: [PATCH 2/7] dax: Missing unlock in error path If the file was truncated, we have to drop the i_mmap_mutex before returning an error. Signed-off-by: Matthew Wilcox --- fs/dax.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/dax.c b/fs/dax.c index 90418ca..fabe9da 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -357,6 +357,7 @@ static int do_dax_fault(struct vm_area_struct *vma, struct vm_fault *vmf, size = (i_size_read(inode) + PAGE_SIZE - 1) >> PAGE_SHIFT; if (vmf->pgoff >= size) { + mutex_unlock(&mapping->i_mmap_mutex); error = -EIO; goto out; } -- 2.1.0