patch-2.1.123 linux/drivers/scsi/st.c

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

diff -u --recursive --new-file v2.1.122/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -890,6 +890,9 @@
     kdev_t devt = inode->i_rdev;
     int dev;
 
+    if (filp->f_count > 1)
+	return 0;
+
     dev = TAPE_NR(devt);
     STp = &(scsi_tapes[dev]);
     STm = &(STp->modes[STp->current_mode]);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov