From: silvio@qualys.com
To: linux-kernel@vger.kernel.org
Subject: [PATCH TRIVIAL]: repost 2.4.19/drivers/acorn/char/mouse_ps2.c
Date: Sat, 24 Aug 2002 03:10:03 -0700 [thread overview]
Message-ID: <20020824031003.B2399@hamsec.aurora.sfo.interquest.net> (raw)
[-- 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);
reply other threads:[~2002-08-24 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020824031003.B2399@hamsec.aurora.sfo.interquest.net \
--to=silvio@qualys.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®