Reset dc->paddr and dc->reset if we cannot read configuration ROM.

This commit is contained in:
Hidetoshi Shimokawa 2007-06-08 12:58:06 +00:00
parent 0bb6a7159d
commit 2ac79858a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170433

View File

@ -204,7 +204,7 @@ dconschat_get_crom(struct dcons_state *dc)
if (dread(dc, &buf, 4, addr + i) < 0) {
if (verbose)
warn("crom read faild");
return (-1);
goto out;
}
buf = ntohl(buf);
if (verbose)