Merge tag 'for-linus-4.4-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / block / xen-blkfront.c
index 833955f324301a7a1109cc5f1de9cdafe46a1813..2fee2eef988d2992480363ea2578ddb9edf17240 100644 (file)
@@ -2116,7 +2116,8 @@ static void blkback_changed(struct xenbus_device *dev,
                        break;
                /* Missed the backend's Closing state -- fallthrough */
        case XenbusStateClosing:
-               blkfront_closing(info);
+               if (info)
+                       blkfront_closing(info);
                break;
        }
 }