Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-14 17:07:35 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-14 17:07:35 +0200
commit79428b3c84092e606e245870f53dab2fea2ec08e (patch)
treecfd682403db1308af0805d3d9af4f93ce3b2ea94
parent7a58a8799e5b1563eafe93202afc7609e0f5612e (diff)
hv/netvsc: Fix NULL dereference at single queue mode fallbackrpm-4.12.14-25.13
(bsc#1104708). suse-commit: 947aa512fe464b682971a0b9cb135f6bcc1a0b5b
-rw-r--r--drivers/net/hyperv/rndis_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index ecff45cb19da..2e13f5917882 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -1301,7 +1301,7 @@ out:
/* setting up multiple channels failed */
net_device->max_chn = 1;
net_device->num_chn = 1;
- return 0;
+ return net_device;
err_dev_remv:
rndis_filter_device_remove(dev, net_device);