|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From c59d61522d87fdaca015f51466d7357288a95110 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Date: Mon, 9 Mar 2015 17:46:30 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Subject: [PATCH] journal: fix return code
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Introduced in fa6ac76083b8ff.
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Might be related to CID #1261724, but I don't know if coverity can
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
recurse this deep.
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
(cherry picked from commit 977eaa1eae53af7f418d87fcb42f4a4d34aad739)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
---
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
src/journal/journal-file.c | 4 +---
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
index 24c49b916a..f500568fec 100644
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
--- a/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+++ b/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
@@ -2652,10 +2652,8 @@ int journal_file_open(
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
}
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
r = mmap_cache_get(f->mmap, f->fd, f->prot, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_stat, &h);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
- if (r < 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
- r = -errno;
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+ if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
goto fail;
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
- }
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
f->header = h;
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|