Subject: Re: [PATCH net-next] sunvnet: fix NULL pointer dereference

From: Sowmini Varadhan <[email-masked]>
Date: Wed, 12 Nov 2014 11:12:37 -0500

On (11/12/14 10:58), David L Stevens wrote:
> --- a/drivers/net/ethernet/sun/sunvnet.c
> +++ b/drivers/net/ethernet/sun/sunvnet.c
> @@ -958,6 +958,8 @@ vnet_select_queue(struct net_device *dev, struct sk_buff *skb,
>  	struct vnet *vp = netdev_priv(dev);
>  	struct vnet_port *port = __tx_port_find(vp, skb);
>  
> +	if (port == NULL)
> +		return 0;
>  	return port->q_index;
>  }

Acked-by: Sowmini Varadhan <[email-masked]>

Thanks!
Sowmini