Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1620a61f authored by Chih-Wei Huang's avatar Chih-Wei Huang
Browse files

vold: fix a bug of crash

The condition to quit the for loop is fs->name is NULL,
not fs itself.

Change-Id: I5f18f92d7488bd89183ba4ddab582f3f3347df46
parent fd7ebb36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1053,7 +1053,7 @@ static int _volmgr_start(volume_t *vol, blkdev_t *dev)
            break;
    }

    if (!fs) {
    if (!fs->name) {
        LOGE("No supported filesystems on %d:%d", dev->major, dev->minor);
        volume_setstate(vol, volstate_nofs);
        return -ENODATA;