summaryrefslogtreecommitdiff
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>2011-03-09 11:49:13 -0600
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>2011-03-28 01:47:46 -0500
commit50f198ae16ac66508d4b8d5a40967a8507ad19ee (patch)
treecfd582a98eca9b93177fe6e417b82e7c4e345f45 /fs/ecryptfs
parent57db4e8d73ef2b5e94a3f412108dff2576670a8a (diff)
eCryptfs: Unlock page in write_begin error path
Unlock the page in error path of ecryptfs_write_begin(). This may happen, for example, if decryption fails while bring the page up-to-date. Cc: <stable@kernel.org> Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/mmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ecryptfs/mmap.c b/fs/ecryptfs/mmap.c
index 5e150131eb9d..6a44148c5fb9 100644
--- a/fs/ecryptfs/mmap.c
+++ b/fs/ecryptfs/mmap.c
@@ -381,6 +381,11 @@ static int ecryptfs_write_begin(struct file *file,
&& (pos != 0))
zero_user(page, 0, PAGE_CACHE_SIZE);
out:
+ if (unlikely(rc)) {
+ unlock_page(page);
+ page_cache_release(page);
+ *pagep = NULL;
+ }
return rc;
}
ibreoffice-4-0-6'>libreoffice-4-0-6 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2023-09-22Branch libreoffice-7-5-7libreoffice-7-5-7Christian Lohmaier0-0/+0
2023-09-22update translations for 7.5.7 rc1Christian Lohmaier22-567/+537
2023-09-19update translations for 7.5.7 rc1cp-23.05.4-2Christian Lohmaier196-5396/+5142
2023-08-30update translations for 7.5.6 rc2Christian Lohmaier4-436/+436
2023-08-28update tranlsations for 7.5Christian Lohmaier114-3872/+3776
2023-08-16update translations for 7.5.6 rc1Xisco Fauli481-25038/+24352
2023-07-12update translations for 7.5.5 rc2cp-23.05.4-1cp-23.05.3-1co-23.05.4-2co-23.05.2-3co-23.05.2-2Christian Lohmaier215-3323/+3313
2023-06-29update translations for 7.5.5 rc1Christian Lohmaier36-811/+761
2023-06-27update translations for 7.5.5 rc1Christian Lohmaier222-6975/+6582
2023-06-12update translations for 7-5Christian Lohmaier259-8287/+7205
2023-06-01Updated Slovenian translationcp-23.05.1-2cp-23.05.1-1cp-23.05.0-5cp-23.05.0-3Martin Srebotnjak8-166/+176
2023-05-31update translations for 7.5.4 rc2Christian Lohmaier585-15681/+17699
2023-05-17update translations for 7.5.4 rc1cp-23.05.0-2Christian Lohmaier1069-24242/+22955
2023-04-26update translations for 7.5.3 rc2Christian Lohmaier265-2739/+2739
2023-04-13update translations for 7.5.3 rc1Christian Lohmaier471-12948/+12301
2023-03-24update translations for 7.5.2 rc2Christian Lohmaier320-7054/+6594
2023-03-09update translations for 7.5.2 rc1Christian Lohmaier342-7132/+6968
2023-02-22update translations for 7.5.1 rc2Christian Lohmaier476-12692/+16928
2023-02-15Updated Slovenian translationMartin Srebotnjak6-107/+137
2023-02-09update translations for 7.5.1 rc1/masterChristian Lohmaier787-24308/+24101
2023-01-25auto-translate macOS version bump for slChristian Lohmaier1-2/+2
2023-01-25update translations for master/7.5.0 rc3 (macOS version bump)Christian Lohmaier176-1227/+1229
2023-01-23update translations for 7.5.0 rc3/masterXisco Fauli354-10361/+10186
2023-01-12update translations for 7.5.0 rc2/masterco-23.05-branch-pointChristian Lohmaier180-5947/+5968
2023-01-09Updated Slovenian translationMartin Srebotnjak20-146/+98
2023-01-09update translations for 7.5.0 rc2 / masterChristian Lohmaier702-21115/+16499
2022-12-27update translations for master/7.5Xisco Fauli184-3798/+3775
2022-12-23Updated Slovenian translationMartin Srebotnjak22-747/+807
2022-12-22update translations for 7.5.0 rc1Christian Lohmaier25-262/+263
2022-12-21update Slovenian files for change in ulf structureChristian Lohmaier2-38/+38
2022-12-21update translations for 7.5.0 rc1 / masterChristian Lohmaier597-17587/+17500
2022-12-20Updated Slovenian translationMartin Srebotnjak18-276/+1698
2022-12-19update translations for 7.5.0 rc1/masterChristian Lohmaier