hyperv/vmbus: Reset ch_dev, once the child is deleted.
So it will not be mis-used later on, e.g. in vmbus_chan_printf(). Submitted by: dexuan Reported by: dexuan MFC after: 1 week Sponsored by: Microsoft
This commit is contained in:
parent
ba2b2efdfa
commit
afe30aa97f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308278
@ -954,6 +954,7 @@ vmbus_delete_child(struct vmbus_channel *chan)
|
||||
if (chan->ch_dev != NULL) {
|
||||
error = device_delete_child(chan->ch_vmbus->vmbus_dev,
|
||||
chan->ch_dev);
|
||||
chan->ch_dev = NULL;
|
||||
}
|
||||
mtx_unlock(&Giant);
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user