You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/11/29 12:19:50 UTC

[mynewt-core] branch master updated: fs/fcb2: fix missing unlock of mutex in getprev

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 7993825bc fs/fcb2: fix missing unlock of mutex in getprev
7993825bc is described below

commit 7993825bc1f58860e23c36578bee10e555d14e3f
Author: Sebastian Block <gi...@world-wi.de>
AuthorDate: Sat Nov 19 18:50:46 2022 +0100

    fs/fcb2: fix missing unlock of mutex in getprev
---
 fs/fcb2/src/fcb_getprev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/fcb2/src/fcb_getprev.c b/fs/fcb2/src/fcb_getprev.c
index 230565535..f543b5d90 100644
--- a/fs/fcb2/src/fcb_getprev.c
+++ b/fs/fcb2/src/fcb_getprev.c
@@ -78,7 +78,8 @@ fcb2_getprev(struct fcb2 *fcb, struct fcb2_entry *loc)
              * Need to get from previous sector.
              */
             if (loc->fe_sector == fcb->f_oldest_sec) {
-                return FCB2_ERR_NOVAR;
+                rc = FCB2_ERR_NOVAR;
+                break;
             }
             if (loc->fe_sector == 0) {
                 loc->fe_sector = fcb->f_sector_cnt - 1;