fix from the Stanford CHECKER

This commit is contained in:
Kai Germaschewski 2001-06-08 08:02:19 +00:00
parent ab87def0bb
commit 7bc01fd25c
1 changed files with 1 additions and 2 deletions

View File

@ -387,8 +387,7 @@ hysdn_net_create(hysdn_card * card)
hysdn_net_release(card); /* release an existing net device */
if ((dev = kmalloc(sizeof(struct net_local), GFP_KERNEL)) == NULL) {
printk(KERN_WARNING "HYSDN: unable to allocate mem\n");
if (card->debug_flags & LOG_NET_INIT)
return (-ENOMEM);
return (-ENOMEM);
}
memset(dev, 0, sizeof(struct net_local)); /* clean the structure */