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

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)