mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH TRIVIAL]: repost 2.4.19/drivers/acorn/char/mouse_ps2.c
@ 2002-08-24 10:10 silvio
  0 siblings, 0 replies; only message in thread
From: silvio @ 2002-08-24 10:10 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 45 bytes --]

repost with attachment this time.

--
Silvio

[-- Attachment #2: patch.linux2 --]
[-- Type: text/plain, Size: 591 bytes --]

--- linux-2.4.19/drivers/acorn/char/mouse_ps2.c	Fri Aug  2 17:39:43 2002
+++ linux-2.4.19-dev/drivers/acorn/char/mouse_ps2.c	Sat Aug 24 02:31:57 2002
@@ -273,9 +273,15 @@
 	iomd_writeb(0, IOMD_MSECTL);
 	iomd_writeb(8, IOMD_MSECTL);
   
-	if (misc_register(&psaux_mouse))
-		return -ENODEV;
 	queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL);
+	if (queue == NULL)
+		return -ENOMEM;
+
+	if (misc_register(&psaux_mouse)) {
+		kfree(queue);
+		return -ENODEV;
+	}
+
 	memset(queue, 0, sizeof(*queue));
 	queue->head = queue->tail = 0;
 	init_waitqueue_head(&queue->proc_list);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-24 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24 10:10 [PATCH TRIVIAL]: repost 2.4.19/drivers/acorn/char/mouse_ps2.c silvio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®