Re: [patch -next] hyperv: NULL dereference on error

2014-09-05 Thread David Miller
From: Dan Carpenter Date: Thu, 4 Sep 2014 14:11:23 +0300 > We try to call free_netvsc_device(net_device) when "net_device" is NULL. > It leads to an Oops. > > Fixes: f90251c8a6d0 ('hyperv: Increase the buffer length for > netvsc_channel_cb()') > Signed-off-by: Dan Carpenter Applied, thanks Da

[patch -next] hyperv: NULL dereference on error

2014-09-04 Thread Dan Carpenter
We try to call free_netvsc_device(net_device) when "net_device" is NULL. It leads to an Oops. Fixes: f90251c8a6d0 ('hyperv: Increase the buffer length for netvsc_channel_cb()') Signed-off-by: Dan Carpenter diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 5b5644a..977