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:
parent
28a5ea3f99
commit
607f519800
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue