lkml.org 
[lkml]   [2002]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH TRIVIAL]: repost 2.4.19/drivers/acorn/char/mouse_ps2.c
repost with attachment this time.

--
Silvio
--- 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);
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.034 / U:5.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site