]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] SCSI tape write error fix
authorKai Mäkisara <kai.makisara@kolumbus.fi>
Sun, 22 Jun 2003 04:26:39 +0000 (21:26 -0700)
committerPaul Mackerras <paulus@samba.org>
Sun, 22 Jun 2003 04:26:39 +0000 (21:26 -0700)
This corrects the back off count so that write errors will not be
ignored

drivers/scsi/st.c

index 31714438236be39c4f402e81b10208daeeb111d9..a8010099008df795afffd38ddd728c3dc8c684fb 100644 (file)
    Copyright 1992 - 2003 Kai Makisara
    email Kai.Makisara@kolumbus.fi
 
-   Last modified: Sun Apr 13 10:17:18 2003 by makisara
    Some small formal changes - aeb, 950809
 
    Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
  */
 
-static char *verstr = "20030413";
+static char *verstr = "20030622";
 
 #include <linux/module.h>
 
@@ -1555,6 +1554,7 @@ static ssize_t
                                }
                        } else {
                                filp->f_pos -= do_count;
+                               count += do_count;
                                STps->drv_block = (-1);         /* Too cautious? */
                                retval = (-EIO);
                        }