diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/x25/x25_route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index 66961ea28c9..b95fae9ab39 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c @@ -136,8 +136,10 @@ struct net_device *x25_dev_get(char *devname) #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) && dev->type != ARPHRD_ETHER #endif - ))) + ))){ dev_put(dev); + dev = NULL; + } return dev; } |