[PATCH] tmpfs double kunmap

From: Hugh Dickins (hugh@veritas.com)
Date: Mon Jul 15 2002 - 08:54:43 EST


Found by Simon Trimmer <simon@veritas.com>: shmem_file_write
failure path duplicates kunmap, causing oops holding kmap_lock.

Patch against 2.4.19-rc1, applies at offset to 2.4.19-rc1-ac3,
applies at offset to 2.5.25 but I'll send Linus and Dave later.

--- 2.4.19-rc1/mm/shmem.c Mon Jun 24 19:14:58 2002
+++ linux/mm/shmem.c Mon Jul 15 12:28:47 2002
@@ -906,7 +906,6 @@
 fail_write:
         status = -EFAULT;
         ClearPageUptodate(page);
- kunmap(page);
         goto unlock;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:30 EST