patch-2.4.0-test4 linux/arch/m68k/atari/joystick.c
Next file: linux/arch/m68k/bvme6000/rtc.c
Previous file: linux/arch/ia64/config.in
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Jul 12 21:58:42 2000
- Orig file:
v2.4.0-test3/linux/arch/m68k/atari/joystick.c
- Orig date:
Fri Jun 23 21:55:07 2000
diff -u --recursive --new-file v2.4.0-test3/linux/arch/m68k/atari/joystick.c linux/arch/m68k/atari/joystick.c
@@ -13,6 +13,7 @@
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
+#include <linux/smp_lock.h>
#include <asm/atarikb.h>
#include <asm/atari_joystick.h>
@@ -60,11 +61,13 @@
{
int minor = DEVICE_NR(inode->i_rdev);
+ lock_kernel();
joystick[minor].active = 0;
joystick[minor].ready = 0;
if ((joystick[0].active == 0) && (joystick[1].active == 0))
ikbd_joystick_disable();
+ unlock_kernel();
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)