netkvm: avoid crash on second virtqueue shutdown
In hot unplug flow the Shutdown() was called when
the m_VirtQueue already zeroed. Avoid NULL pointer
dereferencing.
@@ -171,7 +171,7 @@ public:
void Shutdown()
{
- if (CanTouchHardware())
+ if (m_VirtQueue && CanTouchHardware())
{
virtqueue_shutdown(m_VirtQueue);
}
