LSQ Unit: After deleting part of a split request, set it to NULL so that it

isn't accidentally deleted again later (causing a segmentation fault).
This commit is contained in:
Timothy M. Jones 2010-07-22 18:54:37 +01:00
parent 28a5ea3f99
commit 607f519800

View file

@ -744,6 +744,8 @@ LSQUnit<Impl>::read(Request *req, Request *sreqLow, Request *sreqHigh,
delete fst_data_pkt;
delete snd_data_pkt->req;
delete snd_data_pkt;
sreqLow = NULL;
sreqHigh = NULL;
}
req = NULL;
@ -769,6 +771,7 @@ LSQUnit<Impl>::read(Request *req, Request *sreqLow, Request *sreqHigh,
state->complete();
req = NULL;
sreqHigh = NULL;
lsq->setRetryTid(lsqID);
}