[openib-general] [PATCH] [SRP] Fix bug w/ SRP task mgmt iu size

John Kingman kingman at austin.rr.com
Mon Oct 24 13:01:41 PDT 2005


This patch fixes the problem of task management ius being the wrong length.

Signed-off-by: John Kingman kingman at storagegear.com

Index: ib_srp.c
===================================================================
--- ib_srp.c	(revision 3852)
+++ ib_srp.c	(working copy)
@@ -1136,7 +1136,7 @@ static int srp_send_tsk_mgmt(struct scsi
 	tsk_mgmt->tsk_mgmt_func = func;
 	tsk_mgmt->task_tag 	= req_index;
 
-	if (__srp_post_send(target, iu, sizeof tsk_mgmt))
+	if (__srp_post_send(target, iu, sizeof *tsk_mgmt))
 		goto out;
 
 	req->tsk_mgmt = iu;



More information about the general mailing list