1
0
mirror of https://github.com/simh/simh.git synced 2026-02-26 16:54:22 +00:00

PDP11 and VAXen: Fix transfer buffer unintended deallocation on RQ detach

As reported in https://github.com/open-simh/simh/issues/12
This commit is contained in:
Mark Pizzolato
2022-06-15 15:14:03 -07:00
parent 50b969e519
commit a9ce7b3b11
2 changed files with 2 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ extern int32 MMR2;
#define unit_plug u4 /* drive unit plug value */
#define io_status u5 /* io status from callback */
#define io_complete u6 /* io completion flag */
#define rqxb filebuf /* xfer buffer */
#define rqxb up11 /* xfer buffer */
#define RQ_RMV(u) ((drv_tab[GET_DTYPE (u->flags)].flgs & RQDF_RMV)? \
UF_RMV: 0)
#define RQ_WPH(u) (((drv_tab[GET_DTYPE (u->flags)].flgs & RQDF_RO) || \

View File

@@ -602,6 +602,7 @@ struct UNIT {
void *up8; /* device specific */
uint16 us9; /* device specific */
uint16 us10; /* device specific */
void *up11; /* device specific */
DRVTYP *drvtyp; /* Drive Type */
void *tmxr; /* TMXR linkage */
uint32 recsize; /* Tape specific info */