summaryrefslogtreecommitdiffstats
path: root/sdcard/sdcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdcard/sdcard.c')
-rw-r--r--sdcard/sdcard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 5c18f26a4..e2e8ed0c4 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -826,7 +826,8 @@ static int handle_forget(struct fuse* fuse, struct fuse_handler* handler,
hdr->nodeid, node ? node->name : "?");
if (node) {
__u64 n = req->nlookup;
- while (n--) {
+ while (n) {
+ n--;
release_node_locked(node);
}
}