From 825423e4c4f18289df2393951cfd2a7a31fc0464 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 31 Jan 2001 22:22:27 +0000 Subject: Merge with Linux 2.4.1. --- drivers/isdn/isdn_net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/isdn/isdn_net.c') diff --git a/drivers/isdn/isdn_net.c b/drivers/isdn/isdn_net.c index 757c59ca9..672dd8c5c 100644 --- a/drivers/isdn/isdn_net.c +++ b/drivers/isdn/isdn_net.c @@ -2325,6 +2325,7 @@ isdn_net_new(char *name, struct net_device *master) memset(netdev, 0, sizeof(isdn_net_dev)); if (!(netdev->local = (isdn_net_local *) kmalloc(sizeof(isdn_net_local), GFP_KERNEL))) { printk(KERN_WARNING "isdn_net: Could not allocate device locals\n"); + kfree(netdev); return NULL; } memset(netdev->local, 0, sizeof(isdn_net_local)); -- cgit v1.2.3