Reset dc->paddr and dc->reset if we cannot read configuration ROM.
This commit is contained in:
parent
0bb6a7159d
commit
2ac79858a6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user