]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7492eb8a25e34ad5b22204fa9000ae0b14568bf9
tree573b7e5e189ea21351232bef5a611264136138bc
parent7758aabb4a5aa1e4fe52d8f80d0b4fcc62d428cf
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: 420d09ada1f4 ('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