find_mount_root() tries to test for realpath() failure, but
tests the wrong value. Fix it.
Resolves-Coverity-CID: 1125940
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
ret = 0;
*mount_root = realpath(longest_match, NULL);
ret = 0;
*mount_root = realpath(longest_match, NULL);
ret = -errno;
free(longest_match);
ret = -errno;
free(longest_match);