struct virtio_chan *chan = client->trans;
mutex_lock(&virtio_9p_lock);
- chan->inuse = false;
+ if (chan)
+ chan->inuse = false;
mutex_unlock(&virtio_9p_lock);
}
}
client->trans = (void *)chan;
+ client->status = Connected;
chan->client = client;
return 0;