diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-29 15:19:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-29 15:19:15 -0400 |
| commit | e9d52234e35b27ea4ea5f2ab64ca47b1a0c740ab (patch) | |
| tree | 318d37a7d55c79e6f7d86163fb28e0eccbb0fe83 /drivers/char/qtronix.c | |
| parent | 955c5038823748e529a49f0e33ab635d92843500 (diff) | |
| parent | 09af7b443c257460d45cb6c1896d29f173fef35b (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
Diffstat (limited to 'drivers/char/qtronix.c')
| -rw-r--r-- | drivers/char/qtronix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/qtronix.c b/drivers/char/qtronix.c index 40a3cf62e1a8..601d09baf9d7 100644 --- a/drivers/char/qtronix.c +++ b/drivers/char/qtronix.c | |||
| @@ -591,6 +591,11 @@ static int __init psaux_init(void) | |||
| 591 | return retval; | 591 | return retval; |
| 592 | 592 | ||
| 593 | queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL); | 593 | queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL); |
| 594 | if (!queue) { | ||
| 595 | misc_deregister(&psaux_mouse); | ||
| 596 | return -ENOMEM; | ||
| 597 | } | ||
| 598 | |||
| 594 | memset(queue, 0, sizeof(*queue)); | 599 | memset(queue, 0, sizeof(*queue)); |
| 595 | queue->head = queue->tail = 0; | 600 | queue->head = queue->tail = 0; |
| 596 | init_waitqueue_head(&queue->proc_list); | 601 | init_waitqueue_head(&queue->proc_list); |
