Skip to contentSkip to conversation

iscsi: handle nonlinear skbs

PATCH New Mike Christie 1 participant 1 message Sep 13, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/9 iscsi: handle nonlinear skbs

Quoted 1 line

From [email protected]

Fix oops from nonlinear skb usage.

drivers/scsi/iscsi_tcp.c +1 -2
@@ -1061,7 +1061,6 @@ iscsi_tcp_data_recv(read_descriptor_t *r
 {
 	int rc;
 	struct iscsi_conn *conn = rd_desc->arg.data;
-	int start = skb_headlen(skb);
 	int processed;
 	char pad[ISCSI_PAD_LEN];
 	struct scatterlist sg;
@@ -1070,7 +1069,7 @@ iscsi_tcp_data_recv(read_descriptor_t *r
 	 * Save current SKB and its offset in the corresponding
 	 * connection context.
 	 */
-	conn->in.copy = start - offset;
+	conn->in.copy = skb->len - offset;
 	conn->in.offset = offset;
 	conn->in.skb = skb;
 	conn->in.len = conn->in.copy;