aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 4684cc716aa4..41b1f81b1651 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -17,7 +17,7 @@
17 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 17 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
18 */ 18 */
19 19
20static const char *verstr = "20080224"; 20static const char *verstr = "20080504";
21 21
22#include <linux/module.h> 22#include <linux/module.h>
23 23
@@ -1670,6 +1670,7 @@ st_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
1670 if (undone <= do_count) { 1670 if (undone <= do_count) {
1671 /* Only data from this write is not written */ 1671 /* Only data from this write is not written */
1672 count += undone; 1672 count += undone;
1673 b_point -= undone;
1673 do_count -= undone; 1674 do_count -= undone;
1674 if (STp->block_size) 1675 if (STp->block_size)
1675 blks = (transfer - undone) / STp->block_size; 1676 blks = (transfer - undone) / STp->block_size;