From df9c4a0166b351c20d8c89850880eee76fdecadf Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 26 Apr 2016 11:42:08 -0400 Subject: [PATCH] sdcard: avoid benign unsigned overflow Change-Id: Id9427b4e01602bba31f8958b8d491b092b31482b --- sdcard/sdcard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index f86256195..f08c9d8b3 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -822,7 +822,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); } }