RDMA/ocrdma: Don't call vlan_dev_real_dev() for non-VLAN netdevs
authorRoland Dreier <roland@purestorage.com>
Fri, 10 Aug 2012 23:52:13 +0000 (16:52 -0700)
committerRoland Dreier <roland@purestorage.com>
Fri, 10 Aug 2012 23:52:13 +0000 (16:52 -0700)
commitd549f55f2e132e3d1f1288ce4231f45f12988bbf
tree2b61704aafe54aab65f043366352f5391d236a07
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
RDMA/ocrdma: Don't call vlan_dev_real_dev() for non-VLAN netdevs

If CONFIG_VLAN_8021Q is not set, then vlan_dev_real_dev() just goes BUG(),
so we shouldn't call it unless we're actually dealing with a VLAN netdev.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_main.c