patch-2.4.0-test4 linux/drivers/ieee1394/raw1394.c
Next file: linux/drivers/ieee1394/video1394.c
Previous file: linux/drivers/ide/ide-tape.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Jul 12 21:58:42 2000
- Orig file:
v2.4.0-test3/linux/drivers/ieee1394/raw1394.c
- Orig date:
Mon Jul 10 16:47:23 2000
diff -u --recursive --new-file v2.4.0-test3/linux/drivers/ieee1394/raw1394.c linux/drivers/ieee1394/raw1394.c
@@ -17,6 +17,7 @@
#include <linux/poll.h>
#include <linux/module.h>
#include <linux/version.h>
+#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,0)
@@ -869,6 +870,7 @@
struct pending_request *req;
int done = 0, i;
+ lock_kernel();
for (i = 0; i < 64; i++) {
if (fi->listen_channels & (1ULL << i)) {
hpsb_unlisten_channel(hl_handle, fi->host, i);
@@ -913,6 +915,7 @@
kfree(fi);
V22_COMPAT_MOD_DEC_USE_COUNT;
+ 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)