Skip to content
Commit d549f55f authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 0d7614f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment