Whamcloud - gitweb
LU-4423 lnet: check for null pointer at line 1569 of router.c
[fs/lustre-release.git] / lnet / lnet / router.c
index f611f31..6699245 100644 (file)
@@ -136,7 +136,7 @@ lnet_ni_notify_locked(lnet_ni_t *ni, lnet_peer_t *lp)
          * NB individual events can be missed; the only guarantee is that you
          * always get the most recent news */
 
          * NB individual events can be missed; the only guarantee is that you
          * always get the most recent news */
 
-       if (lp->lp_notifying)
+       if (lp->lp_notifying || ni == NULL)
                 return;
 
         lp->lp_notifying = 1;
                 return;
 
         lp->lp_notifying = 1;