patch-2.4.14 linux/drivers/scsi/osst.c

Next file: linux/drivers/scsi/qlogicfas.c
Previous file: linux/drivers/scsi/oktagon_esp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/scsi/osst.c linux/drivers/scsi/osst.c
@@ -4935,6 +4935,7 @@
 			tb->sg[0].address =
 			    (unsigned char *)__get_free_pages(priority, order);
 			if (tb->sg[0].address != NULL) {
+			    tb->sg[0].page = NULL;
 			    tb->sg[0].length = b_size;
 			    break;
 			}
@@ -4970,6 +4971,7 @@
 				tb = NULL;
 				break;
 			    }
+			    tb->sg[segs].page = NULL;
 			    tb->sg[segs].length = b_size;
 			    got += b_size;
 			    segs++;
@@ -5043,6 +5045,7 @@
 			normalize_buffer(STbuffer);
 			return FALSE;
 		}
+		STbuffer->sg[segs].page = NULL;
 		STbuffer->sg[segs].length = b_size;
 		STbuffer->sg_segs += 1;
 		got += b_size;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)