Takashi Iwai b19b46346f hv/netvsc: Fix NULL dereference at single queue mode fallback
The recent commit 916c5e1413be ("hv/netvsc: fix handling of fallback
to single queue mode") tried to fix the fallback behavior to a single
queue mode, but it changed the function to return zero incorrectly,
while the function should return an object pointer.  Eventually this
leads to a NULL dereference at the callers that expect non-NULL
value.

Fix it by returning the proper net_device object.

Fixes: 916c5e1413be ("hv/netvsc: fix handling of fallback to single queue mode")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-14 10:24:12 -07:00
..
2018-08-03 12:54:54 -07:00
2018-06-12 16:19:22 -07:00
2018-07-11 23:10:19 -07:00
2018-07-20 12:33:37 -07:00
2018-05-28 23:02:22 -04:00
2018-05-28 22:59:54 -04:00
2018-07-29 12:57:26 -07:00
2018-08-04 13:15:11 -07:00
2018-08-10 16:12:21 +02:00