diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-05-26 09:07:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 19:52:40 -0400 |
commit | 93cce049682a1aebd49766f29af363e5b8770aed (patch) | |
tree | e038a733f555688446397020b6ee44cbc0d9b4d5 /fs/pstore/ram.c | |
parent | fce397930475f7efc712a1345dc0dad269a10544 (diff) |
pstore/ram: Should zap persistent zone on unlink
Otherwise, unlinked file will reappear on the next boot.
Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r-- | fs/pstore/ram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 16ff7332eae0..453030f9c5bc 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c | |||
@@ -186,6 +186,7 @@ static int ramoops_pstore_erase(enum pstore_type_id type, u64 id, | |||
186 | return -EINVAL; | 186 | return -EINVAL; |
187 | 187 | ||
188 | persistent_ram_free_old(cxt->przs[id]); | 188 | persistent_ram_free_old(cxt->przs[id]); |
189 | persistent_ram_zap(cxt->przs[id]); | ||
189 | 190 | ||
190 | return 0; | 191 | return 0; |
191 | } | 192 | } |