Message ID | 1409810785-12391-7-git-send-email-bharata@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 441a4a7..6a0b9c5 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -372,6 +372,7 @@ static sPAPRDrcEntry *spapr_add_to_drc_table(int type, uint64_t buid, for (i = start; i < end; i++) { if (spapr->drc_table[i].id == 0) { empty_drc = &spapr->drc_table[i]; + break; } if (spapr->drc_table[i].id == buid) {
When adding a new entry to the DRC table, stop looking at more entries after finding the first free slot. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)