summaryrefslogtreecommitdiffstats
path: root/firmware/common/dircache.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/dircache.c')
-rw-r--r--firmware/common/dircache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index 41564194d0..c274b6c62c 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -1882,7 +1882,8 @@ static void build_volumes(void)
logf("Done, %ld KiB used", dircache.size / 1024);
- core_unpin(dircache_runinfo.handle);
+ if (dircache_runinfo.handle > 0) /* dircache may have been disabled */
+ core_unpin(dircache_runinfo.handle);
}
/**