diff options
Diffstat (limited to 'drivers/net/gtp.c')
-rw-r--r-- | drivers/net/gtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c index 4fea1b3dfbb4..7b652bb7ebe4 100644 --- a/drivers/net/gtp.c +++ b/drivers/net/gtp.c | |||
@@ -873,7 +873,7 @@ static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[]) | |||
873 | 873 | ||
874 | /* Check if there's an existing gtpX device to configure */ | 874 | /* Check if there's an existing gtpX device to configure */ |
875 | dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK])); | 875 | dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK])); |
876 | if (dev->netdev_ops == >p_netdev_ops) | 876 | if (dev && dev->netdev_ops == >p_netdev_ops) |
877 | gtp = netdev_priv(dev); | 877 | gtp = netdev_priv(dev); |
878 | 878 | ||
879 | put_net(net); | 879 | put_net(net); |