patch-2.2.17 linux/drivers/scsi/scsi_error.c

Next file: linux/drivers/scsi/scsi_ioctl.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/scsi/scsi_error.c linux/drivers/scsi/scsi_error.c
@@ -1941,7 +1941,11 @@
 	current->pgrp = 1;
 	
 	/* Become as one with the init task */
-	
+
+ 	exit_files(current);
+	current->files = init_task.files;
+	atomic_inc(&current->files->count);
+ 		
 	exit_fs(current);	/* current->fs->count--; */
 	fs = init_task.fs;
 	current->fs = fs;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)