Skip to content

Commit be0cde7

Browse files
fyin1wenlingz
authored andcommitted
Revert "dm: workaroud for DM crash when doing fastboot reboot"
Remove the workaround and will submit the fixing patch. Tracked-On: #1277 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
1 parent b115546 commit be0cde7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

devicemodel/hw/pci/core.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,7 @@ modify_bar_registration(struct pci_vdev *dev, int idx, int registration)
493493
error = EINVAL;
494494
break;
495495
}
496-
497-
/* FIXME: workaround for unregister_mem for fastboot. */
498-
if (error != 0) {
499-
printf("modify_bar_registration failed with %d", error);
500-
}
496+
assert(error == 0);
501497
}
502498

503499
static void

0 commit comments

Comments
 (0)