projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff77c4
)
qtronix.c: Handle kmalloc failure.
author
Ralf Baechle
<ralf@linux-mips.org>
Thu, 10 Mar 2005 17:34:03 +0000
(17:34 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sat, 29 Oct 2005 18:30:55 +0000
(19:30 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/char/qtronix.c
patch
|
blob
|
history
diff --git
a/drivers/char/qtronix.c
b/drivers/char/qtronix.c
index
40a3cf6
..
601d09b
100644
(file)
--- a/
drivers/char/qtronix.c
+++ b/
drivers/char/qtronix.c
@@
-591,6
+591,11
@@
static int __init psaux_init(void)
return retval;
queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL);
+ if (!queue) {
+ misc_deregister(&psaux_mouse);
+ return -ENOMEM;
+ }
+
memset(queue, 0, sizeof(*queue));
queue->head = queue->tail = 0;
init_waitqueue_head(&queue->proc_list);