From 09ee2e73c8cc30a9c4e86455fbde49ea0064faf6 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sat, 21 Jan 2017 23:29:15 +0100 Subject: [PATCH] This may well have been the cause of the shutdown problems of dpni20. --- src/dvni20.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dvni20.c b/src/dvni20.c index c9f8903..7f37f1c 100644 --- a/src/dvni20.c +++ b/src/dvni20.c @@ -789,10 +789,10 @@ ni20_reset(struct device *d) static void ni20_quit(struct ni20 *ni) { - struct dpx_s *dpx = &(ni->ni_dp.dp_adr->dpc_frdp); + struct dpx_s *dpx = &(ni->ni_dp.dp_adr->dpc_todp); /* Make sure we can send the message, or just skip it if not */ - if (ni->ni_dpstate) { + if (ni->ni_dpstate && ni->ni_dp.dp_chpid) { if (DVDEBUG(ni)) fprintf(NIDBF(ni), " [Sending QUIT to NI20]"); @@ -802,7 +802,7 @@ ni20_quit(struct ni20 *ni) } } else { if (DVDEBUG(ni)) - fprintf(NIDBF(ni), "[No need to send QUIT to NI20]"); + fprintf(NIDBF(ni), "[No need to send QUIT to NI20; pid=%d, state=%d]", ni->ni_dp.dp_chpid, ni->ni_dpstate); } }