diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-15 03:32:22 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-15 03:32:22 +0000 |
commit | f1da2c3860e301527d56a1ef0b56c649ee7c4b1b (patch) | |
tree | 562b5d2e8b9cb62eb983d78ff6bcf9789e08fcf6 /drivers/usb/evdev.c | |
parent | 00f11569ac8ca73cbcdef8822de1583e79aee571 (diff) |
Merge with Linux 2.4.0-test5-pre1. This works again on Origin UP.
The IP22 cache bugs which are plaguing some machines are still unfixed.
Diffstat (limited to 'drivers/usb/evdev.c')
-rw-r--r-- | drivers/usb/evdev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/evdev.c b/drivers/usb/evdev.c index 7eca5e304..e11327cef 100644 --- a/drivers/usb/evdev.c +++ b/drivers/usb/evdev.c @@ -37,6 +37,7 @@ #include <linux/module.h> #include <linux/init.h> #include <linux/input.h> +#include <linux/smp_lock.h> struct evdev { int exist; @@ -91,8 +92,10 @@ static int evdev_fasync(int fd, struct file *file, int on) static int evdev_release(struct inode * inode, struct file * file) { struct evdev_list *list = file->private_data; - struct evdev_list **listptr = &list->evdev->list; + struct evdev_list **listptr; + lock_kernel(); + listptr = &list->evdev->list; evdev_fasync(-1, file, 0); while (*listptr && (*listptr != list)) @@ -110,6 +113,7 @@ static int evdev_release(struct inode * inode, struct file * file) } kfree(list); + unlock_kernel(); return 0; } |