aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorHangbin Liu <[email protected]>2014-01-03 03:33:45 +0000
committerDavid S. Miller <[email protected]>2014-01-04 01:38:56 +0000
commit0d68fc4f1210f8caea2bdd68f99dc6da35ee3740 (patch)
treef43d45c068c5f990a73748b71feefa62f6010f3f /drivers/net/xen-netback/interface.c
parent{vxlan, inet6} Mark vxlan_dev flags with VXLAN_F_IPV6 properly (diff)
downloadkernel-0d68fc4f1210f8caea2bdd68f99dc6da35ee3740.tar.gz
kernel-0d68fc4f1210f8caea2bdd68f99dc6da35ee3740.zip
infiniband: make sure the src net is infiniband when create new link
When we create a new infiniband link with uninfiniband device, e.g. `ip link add link em1 type ipoib pkey 0x8001`. We will get a NULL pointer dereference cause other dev like Ethernet don't have struct ib_device. The code path is: rtnl_newlink |-- ipoib_new_child_link |-- __ipoib_vlan_add |-- ipoib_set_dev_features |-- ib_query_device Fix this bug by make sure the src net is infiniband when create new link. Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions