This patch fixes an infinite loop that was observed with a BMC that has an empty SDR.

- Dan Aloni
This commit is contained in:
Francois Isabelle 2007-11-07 16:00:25 +00:00
parent 86c4e40277
commit e8ad5be7fb

View File

@ -654,6 +654,9 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
}
}
if (try == 5)
return NULL;
if (!rsp)
return NULL;