From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Mar 2015 21:46:30 +0000 (-0400) Subject: journal: fix return code X-Git-Tag: v220~831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=977eaa1eae53af7f418d87fcb42f4a4d34aad739;p=platform%2Fupstream%2Fsystemd.git journal: fix return code Introduced in fa6ac76083b8ff. Might be related to CID #1261724, but I don't know if coverity can recurse this deep. --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index f857a6a..8e76427 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2651,10 +2651,8 @@ int journal_file_open( } r = mmap_cache_get(f->mmap, f->fd, f->prot, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_stat, &h); - if (r < 0) { - r = -errno; + if (r < 0) goto fail; - } f->header = h;