Fixed reference to overlapping (the same) string.

The intent of the rootdev_get_device_slave is to allow the slave and
the device to be the same string but it is not required. Added a
test for the case where they are the same string to not do the

Linux has vixed the problem of a limited number of stacked devices,
so I fixed the comment that referred to it.

TEST=rootdev -s

Change-Id: I04d84799e77c678f1330e1bcf72cddaf9ac68c4c
Tested-by: Paul Taysom <>
Reviewed-by: Yunlian Jiang <>
Commit-Queue: Paul Taysom <>
1 file changed