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)
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>

No differences found