patch-2.4.4 linux/drivers/atm/zatm.c
Next file: linux/drivers/block/cciss.c
Previous file: linux/drivers/atm/firestream.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Apr 11 19:02:30 2001
- Orig file:
v2.4.3/linux/drivers/atm/zatm.c
- Orig date:
Tue Jul 18 14:55:01 2000
diff -u --recursive --new-file v2.4.3/linux/drivers/atm/zatm.c linux/drivers/atm/zatm.c
@@ -1826,9 +1826,13 @@
devs++;
zatm_dev = (struct zatm_dev *) kmalloc(sizeof(struct
zatm_dev),GFP_KERNEL);
- if (!zatm_dev) break;
+ if (!zatm_dev) {
+ printk(KERN_EMERG "zatm.c: memory shortage\n");
+ goto out;
+ }
}
}
+out:
return devs;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)