patch-2.4.21 linux-2.4.21/drivers/char/qtronix.c
Next file: linux-2.4.21/drivers/char/random.c
Previous file: linux-2.4.21/drivers/char/pdc_console.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
2003-06-13 07:51:33.000000000 -0700
- Orig file:
linux-2.4.20/drivers/char/qtronix.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.20/drivers/char/qtronix.c linux-2.4.21/drivers/char/qtronix.c
@@ -587,7 +587,12 @@
static int __init psaux_init(void)
{
- misc_register(&psaux_mouse);
+ int retval;
+
+ retval = misc_register(&psaux_mouse);
+ if(retval < 0)
+ return retval;
+
queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL);
memset(queue, 0, sizeof(*queue));
queue->head = queue->tail = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)