mirror of https://github.com/ipxe/ipxe.git
Avoid erasing non-existent signatures in undi_unload()
parent
a2be828a33
commit
ed44e3730d
|
@ -170,7 +170,9 @@ int undi_unload ( struct undi_device *undi ) {
|
||||||
DBGC ( undi, "UNDI %p unloading\n", undi );
|
DBGC ( undi, "UNDI %p unloading\n", undi );
|
||||||
|
|
||||||
/* Erase signatures */
|
/* Erase signatures */
|
||||||
|
if ( undi->pxenv.segment )
|
||||||
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
|
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
|
||||||
|
if ( undi->ppxe_segment )
|
||||||
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
|
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
|
||||||
|
|
||||||
/* Free base memory, if possible */
|
/* Free base memory, if possible */
|
||||||
|
|
Loading…
Reference in New Issue