Commit f22608cb authored by Kai Mäkisara's avatar Kai Mäkisara Committed by Paul Mackerras

[PATCH] SCSI tape write error fix

This corrects the back off count so that write errors will not be
ignored
parent 77a5fe3c
...@@ -12,13 +12,12 @@ ...@@ -12,13 +12,12 @@
Copyright 1992 - 2003 Kai Makisara Copyright 1992 - 2003 Kai Makisara
email Kai.Makisara@kolumbus.fi email Kai.Makisara@kolumbus.fi
Last modified: Sun Apr 13 10:17:18 2003 by makisara
Some small formal changes - aeb, 950809 Some small formal changes - aeb, 950809
Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 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> #include <linux/module.h>
...@@ -1555,6 +1554,7 @@ static ssize_t ...@@ -1555,6 +1554,7 @@ static ssize_t
} }
} else { } else {
filp->f_pos -= do_count; filp->f_pos -= do_count;
count += do_count;
STps->drv_block = (-1); /* Too cautious? */ STps->drv_block = (-1); /* Too cautious? */
retval = (-EIO); retval = (-EIO);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment