PDP11, VAX: Fix Coverity identified debug path null pointer dereference
This commit is contained in:
parent
15e86fb4ed
commit
54f46651fe
1 changed files with 1 additions and 1 deletions
|
@ -2447,9 +2447,9 @@ t_bool rq_una (MSC *cp, uint16 lu)
|
||||||
uint16 pkt;
|
uint16 pkt;
|
||||||
UNIT *uptr = rq_getucb (cp, lu);
|
UNIT *uptr = rq_getucb (cp, lu);
|
||||||
|
|
||||||
sim_debug (DBG_TRC, rq_devmap[cp->cnum], "rq_una (%s. Unit=%d)\n", sim_uname (uptr), lu);
|
|
||||||
if (uptr == NULL) /* huh? */
|
if (uptr == NULL) /* huh? */
|
||||||
return OK;
|
return OK;
|
||||||
|
sim_debug (DBG_TRC, rq_devmap[cp->cnum], "rq_una (%s. Unit=%d)\n", sim_uname (uptr), lu);
|
||||||
if (!rq_deqf (cp, &pkt)) /* get log pkt */
|
if (!rq_deqf (cp, &pkt)) /* get log pkt */
|
||||||
return ERR;
|
return ERR;
|
||||||
cp->pak[pkt].d[RSP_REFL] = 0; /* ref = 0 */
|
cp->pak[pkt].d[RSP_REFL] = 0; /* ref = 0 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue