commit | df9c4a0166b351c20d8c89850880eee76fdecadf | [log] [tgz] |
---|---|---|
author | Daniel Micay <danielmicay@gmail.com> | Tue Apr 26 11:42:08 2016 -0400 |
committer | Daniel Micay <danielmicay@gmail.com> | Tue Apr 26 12:08:46 2016 -0400 |
tree | 7ba8353ea6498299a06944953bb5f732d4b91cbe | |
parent | 58505e17bb44832ec6d63f62649b666e17bb5ad0 [diff] [blame] |
sdcard: avoid benign unsigned overflow Change-Id: Id9427b4e01602bba31f8958b8d491b092b31482b
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index f862561..f08c9d8 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c
@@ -822,7 +822,8 @@ hdr->nodeid, node ? node->name : "?"); if (node) { __u64 n = req->nlookup; - while (n--) { + while (n) { + n--; release_node_locked(node); } }