hyperv: NULL dereference on error
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Sep 2014 11:11:23 +0000 (14:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:29:22 +0000 (17:29 -0700)
commitb1c849276b5e199f94501101c07ee9cb6ced4935
tree573b7e5e189ea21351232bef5a611264136138bc
parenta77f9a282a2290526a6239b17ef822ec75ac793c
hyperv: NULL dereference on error

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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c