[SCSI] st: Move buffer pointer back when data could not be written.

Move buffer pointer back when data could not be written. Bug found by
Mike Christie.

Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Kai Makisara and committed by
James Bottomley
626dcb1e f0773b5f

+2 -1
+2 -1
drivers/scsi/st.c
··· 17 17 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 18 18 */ 19 19 20 - static const char *verstr = "20080224"; 20 + static const char *verstr = "20080504"; 21 21 22 22 #include <linux/module.h> 23 23 ··· 1670 1670 if (undone <= do_count) { 1671 1671 /* Only data from this write is not written */ 1672 1672 count += undone; 1673 + b_point -= undone; 1673 1674 do_count -= undone; 1674 1675 if (STp->block_size) 1675 1676 blks = (transfer - undone) / STp->block_size;