| .. | .. |
|---|
| 234 | 234 | } |
|---|
| 235 | 235 | |
|---|
| 236 | 236 | static u16 vnet_select_queue(struct net_device *dev, struct sk_buff *skb, |
|---|
| 237 | | - struct net_device *sb_dev, |
|---|
| 238 | | - select_queue_fallback_t fallback) |
|---|
| 237 | + struct net_device *sb_dev) |
|---|
| 239 | 238 | { |
|---|
| 240 | 239 | struct vnet *vp = netdev_priv(dev); |
|---|
| 241 | 240 | struct vnet_port *port = __tx_port_find(vp, skb); |
|---|
| .. | .. |
|---|
| 432 | 431 | |
|---|
| 433 | 432 | hp = mdesc_grab(); |
|---|
| 434 | 433 | |
|---|
| 434 | + if (!hp) |
|---|
| 435 | + return -ENODEV; |
|---|
| 436 | + |
|---|
| 435 | 437 | vp = vnet_find_parent(hp, vdev->mp, vdev); |
|---|
| 436 | 438 | if (IS_ERR(vp)) { |
|---|
| 437 | 439 | pr_err("Cannot find port parent vnet\n"); |
|---|