From 744a8f87d9ccd5e6112c7052863df6291e045f51 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 9 Sep 2015 18:03:13 -0400 Subject: [PATCH] fs_mgr: Fix ENOMEM behavior when dealing with slotselect. Change-Id: I5460a8d31baa0d4817ff5fcbd9aac272071937f4 --- fs_mgr/fs_mgr_fstab.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs_mgr/fs_mgr_fstab.c b/fs_mgr/fs_mgr_fstab.c index 3379deb4e..4f18339fa 100644 --- a/fs_mgr/fs_mgr_fstab.c +++ b/fs_mgr/fs_mgr_fstab.c @@ -313,6 +313,7 @@ struct fstab *fs_mgr_read_fstab(const char *fstab_path) /* If an A/B partition, modify block device to be the real block device */ if (fs_mgr_update_for_slotselect(fstab) != 0) { ERROR("Error updating for slotselect\n"); + goto err; } fclose(fstab_file); free(line);