diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:49:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:49:19 -0400 |
commit | 9c8680e2cfbb60d5075f8caaf9d98276120bcc78 (patch) | |
tree | 1957cff26a46271d5b63a3c209629ddd7f9fe124 /drivers/input/mousedev.c | |
parent | f900e5824a44ab65437b4f7e7c610b72f94820c5 (diff) | |
parent | b9ec4e109d7a342e83e1210e05797222e36555c3 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/dtor/input
* master.kernel.org:/pub/scm/linux/kernel/git/dtor/input: (26 commits)
Input: add support for Braille devices
Input: synaptics - limit rate to 40pps on Toshiba Protege M300
Input: gamecon - add SNES mouse support
Input: make modalias code respect allowed buffer size
Input: convert /proc handling to seq_file
Input: limit attributes' output to PAGE_SIZE
Input: gameport - fix memory leak
Input: serio - fix memory leak
Input: zaurus keyboard driver updates
Input: i8042 - fix logic around pnp_register_driver()
Input: ns558 - fix logic around pnp_register_driver()
Input: pcspkr - separate device and driver registration
Input: atkbd - allow disabling on X86_PC (if EMBEDDED)
Input: atkbd - disable softrepeat for dumb keyboards
Input: atkbd - fix complaints about 'releasing unknown key 0x7f'
Input: HID - fix duplicate key mapping for Logitech UltraX remote
Input: use kzalloc() throughout the code
Input: fix input_free_device() implementation
Input: initialize serio and gameport at subsystem level
Input: uinput - semaphore to mutex conversion
...
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r-- | drivers/input/mousedev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 9abed18d2ecf..b685a507955d 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -412,9 +412,8 @@ static int mousedev_open(struct inode * inode, struct file * file) | |||
412 | if (i >= MOUSEDEV_MINORS || !mousedev_table[i]) | 412 | if (i >= MOUSEDEV_MINORS || !mousedev_table[i]) |
413 | return -ENODEV; | 413 | return -ENODEV; |
414 | 414 | ||
415 | if (!(list = kmalloc(sizeof(struct mousedev_list), GFP_KERNEL))) | 415 | if (!(list = kzalloc(sizeof(struct mousedev_list), GFP_KERNEL))) |
416 | return -ENOMEM; | 416 | return -ENOMEM; |
417 | memset(list, 0, sizeof(struct mousedev_list)); | ||
418 | 417 | ||
419 | spin_lock_init(&list->packet_lock); | 418 | spin_lock_init(&list->packet_lock); |
420 | list->pos_x = xres / 2; | 419 | list->pos_x = xres / 2; |
@@ -626,9 +625,8 @@ static struct input_handle *mousedev_connect(struct input_handler *handler, stru | |||
626 | return NULL; | 625 | return NULL; |
627 | } | 626 | } |
628 | 627 | ||
629 | if (!(mousedev = kmalloc(sizeof(struct mousedev), GFP_KERNEL))) | 628 | if (!(mousedev = kzalloc(sizeof(struct mousedev), GFP_KERNEL))) |
630 | return NULL; | 629 | return NULL; |
631 | memset(mousedev, 0, sizeof(struct mousedev)); | ||
632 | 630 | ||
633 | INIT_LIST_HEAD(&mousedev->list); | 631 | INIT_LIST_HEAD(&mousedev->list); |
634 | init_waitqueue_head(&mousedev->wait); | 632 | init_waitqueue_head(&mousedev->wait); |