diff options
Diffstat (limited to 'kernel/net/mpls')
-rw-r--r-- | kernel/net/mpls/af_mpls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/net/mpls/af_mpls.c b/kernel/net/mpls/af_mpls.c index c32fc411a..881bc2072 100644 --- a/kernel/net/mpls/af_mpls.c +++ b/kernel/net/mpls/af_mpls.c @@ -518,6 +518,9 @@ static struct net_device *find_outdev(struct net *net, if (!dev) return ERR_PTR(-ENODEV); + if (IS_ERR(dev)) + return dev; + /* The caller is holding rtnl anyways, so release the dev reference */ dev_put(dev); |