OSDN Git Service

ANDROID: mnt: Fix next_descendent
authorDaniel Rosenberg <drosen@google.com>
Mon, 29 May 2017 23:38:16 +0000 (16:38 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit0796eb612f240fff6101ca952ffd6a254d8e7a0b
tree918d30aa6b4b6792f04bb31489110b38ea354553
parente036a89d99d5bd92f077a8637ea24401325a7636
ANDROID: mnt: Fix next_descendent

next_descendent did not properly handle the case
where the initial mount had no slaves. In this case,
we would look for the next slave, but since don't
have a master, the check for wrapping around to the
start of the list will always fail. Instead, we check
for this case, and ensure that we end the iteration
when we come back to the root.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 62094374
Change-Id: I43dfcee041aa3730cb4b9a1161418974ef84812e
fs/pnode.c