patch-2.4.4 linux/drivers/char/pc_keyb.c
Next file: linux/drivers/char/pcwd.c
Previous file: linux/drivers/char/n_tty.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Apr 6 10:42:55 2001
- Orig file:
v2.4.3/linux/drivers/char/pc_keyb.c
- Orig date:
Fri Mar 2 18:38:37 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
@@ -1016,6 +1016,8 @@
misc_register(&psaux_mouse);
queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL);
+ if (queue == NULL)
+ panic("psaux_init(): out of memory");
memset(queue, 0, sizeof(*queue));
queue->head = queue->tail = 0;
init_waitqueue_head(&queue->proc_list);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)