From f1da2c3860e301527d56a1ef0b56c649ee7c4b1b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 15 Jul 2000 03:32:22 +0000 Subject: 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. --- drivers/sbus/char/jsflash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/sbus/char/jsflash.c') diff --git a/drivers/sbus/char/jsflash.c b/drivers/sbus/char/jsflash.c index b01f26969..f87850b2c 100644 --- a/drivers/sbus/char/jsflash.c +++ b/drivers/sbus/char/jsflash.c @@ -35,6 +35,7 @@ #include #include #include +#include /* * is controlled from the outside with these definitions. @@ -504,7 +505,9 @@ static int jsfd_open(struct inode *inode, struct file *file) static int jsf_release(struct inode *inode, struct file *file) { + lock_kernel(); jsf0.busy = 0; + unlock_kernel(); return 0; } -- cgit v1.2.3