]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] eCryptfs: resolve lower page unlocking problem
authorMichael Halcrow <mhalcrow@us.ibm.com>
Thu, 1 Mar 2007 04:12:16 +0000 (20:12 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 1 Mar 2007 22:53:37 +0000 (14:53 -0800)
commit7a0b6246e05f78c639b28ec81b723c4afa9be5b6
treed593f88dd5ab406bc785b7acaf137d7fb67d07b2
parent3b4d81c09dc08de1440fb7c5f8fe1f2301d92851
[PATCH] eCryptfs: resolve lower page unlocking problem

eCryptfs lower file handling code has several issues:
  - Retval from prepare_write()/commit_write() wasn't checked to equality
    to AOP_TRUNCATED_PAGE.
  - In some places page wasn't unmapped and unlocked after error.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/mmap.c