diff options
-rw-r--r-- | libports/interrupt-on-notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/interrupt-on-notify.c b/libports/interrupt-on-notify.c index 74a50875..4f8c1344 100644 --- a/libports/interrupt-on-notify.c +++ b/libports/interrupt-on-notify.c @@ -118,7 +118,8 @@ ports_interrupt_rpc_on_notification (void *object, req->next_req = pn->reqs; req->prev_req_p = &pn->reqs; - pn->reqs->prev_req_p = &req->next_req; + if (pn->reqs) + pn->reqs->prev_req_p = &req->next_req; pn->reqs = req; req->next = rpc->notifies; |