summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/vmbus/hv_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/vmbus/hv_channel.c')
-rw-r--r--sys/dev/hyperv/vmbus/hv_channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_channel.c b/sys/dev/hyperv/vmbus/hv_channel.c
index 9b9f684..a7d9de8 100644
--- a/sys/dev/hyperv/vmbus/hv_channel.c
+++ b/sys/dev/hyperv/vmbus/hv_channel.c
@@ -106,10 +106,10 @@ vmbus_channel_sysctl_create(hv_vmbus_channel* channel)
hv_vmbus_channel* primary_ch = channel->primary_channel;
if (primary_ch == NULL) {
- dev = channel->device->device;
+ dev = channel->ch_dev;
ch_id = channel->ch_id;
} else {
- dev = primary_ch->device->device;
+ dev = primary_ch->ch_dev;
ch_id = primary_ch->ch_id;
sub_ch_id = channel->ch_subidx;
}
OpenPOWER on IntegriCloud