david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Avoid erasing non-existent signatures in undi_unload()

This commit is contained in:
Michael Brown 2007-01-09 02:53:24 +00:00
parent a2be828a33
commit ed44e3730d
1 changed files with 4 additions and 2 deletions

View File

@ -170,8 +170,10 @@ int undi_unload ( struct undi_device *undi ) {
DBGC ( undi, "UNDI %p unloading\n", undi );
/* Erase signatures */
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
if ( undi->pxenv.segment )
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
if ( undi->ppxe_segment )
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
/* Free base memory, if possible */
get_real ( fbms, BDA_SEG, BDA_FBMS );