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/mdc800.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/mdc800.c')
-rw-r--r-- | drivers/usb/mdc800.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/mdc800.c b/drivers/usb/mdc800.c index dc578df33..80a1ebbf4 100644 --- a/drivers/usb/mdc800.c +++ b/drivers/usb/mdc800.c @@ -76,6 +76,7 @@ #include <linux/init.h> #include <linux/malloc.h> #include <linux/module.h> +#include <linux/smp_lock.h> #include <linux/usb.h> @@ -582,6 +583,7 @@ static int mdc800_device_release (struct inode* inode, struct file *file) int retval=0; dbg ("Mustek MDC800 device closed."); + lock_kernel(); if (mdc800->open && (mdc800->state != NOT_CONNECTED)) { mdc800->open=0; @@ -593,6 +595,7 @@ static int mdc800_device_release (struct inode* inode, struct file *file) { retval=-EIO; } + unlock_kernel(); return retval; } |