ANDROID: dm: do_mounts_dm: fix dm_substitute_devices()
authorJeremy Compostella <jeremy.compostella@intel.com>
Mon, 2 May 2016 15:29:28 +0000 (17:29 +0200)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit052d02c07cbe70ddbd6da4b001c220d7e597286a
tree73605660cb3be0e4d20098ad100e07b6d03fe6d2
parent398884b9e1d8208ac8bb89ec8eaa23e84b4cbda9
ANDROID: dm: do_mounts_dm: fix dm_substitute_devices()

When candidate is the last parameter, candidate_end points to the '\0'
character and not the DM_FIELD_SEP character.  In such a situation, we
should not move the candidate_end pointer one character backward.

Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
init/do_mounts_dm.c