diff options
Diffstat (limited to 'drivers/net/ariadne.c')
-rw-r--r-- | drivers/net/ariadne.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ariadne.c b/drivers/net/ariadne.c index baaa59692..8a1cd4e9d 100644 --- a/drivers/net/ariadne.c +++ b/drivers/net/ariadne.c @@ -171,6 +171,8 @@ __initfunc(int ariadne_probe(struct device *dev)) init_etherdev(dev, 0); dev->priv = kmalloc(sizeof(struct ariadne_private), GFP_KERNEL); + if (dev->priv == NULL) + return -ENOMEM; priv = (struct ariadne_private *)dev->priv; memset(priv, 0, sizeof(struct ariadne_private)); |