Skip to contentSkip to conversation

Invalid request_limit unnoticed?

PATCH In review Roel Kluin 2 participants 2 messages May 2, 2009 – May 6, 2009

Subsystems (3)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Invalid request_limit unnoticed?

Remove redundant test on unsigned.

---
Maybe a different test is required?

To see that it is unsigned:

git grep -E -n "(req_lim_delta|__be32;$)"

drivers/scsi/ibmvscsi/ibmvscsi.c +0 -3
index c9aa761..8d3925f 100644
@@ -910,9 +910,6 @@ static void login_rsp(struct srp_event_struct *evt_struct)
 
 	dev_info(hostdata->dev, "SRP_LOGIN succeeded\n");
 
-	if (evt_struct->xfer_iu->srp.login_rsp.req_lim_delta < 0)
-		dev_err(hostdata->dev, "Invalid request_limit.\n");
-
 	/* Now we know what the real request-limit is.
 	 * This value is set rather than added to request_limit because
 	 * request_limit could have been set to -1 by this client.
#1 lore raw

Acked by: Brian King <[email protected]>

Quoted 28 lines · Roel Kluin

Remove redundant test on unsigned.

---
Maybe a different test is required?

To see that it is unsigned:

git grep -E -n "(req_lim_delta|__be32;$)"

drivers/scsi/ibmvscsi/ibmvscsi.c +0 -4
index c9aa761..8d3925f 100644
@@ -910,9 +910,6 @@ static void login_rsp(struct srp_event_struct *evt_struct)
 
 	dev_info(hostdata->dev, "SRP_LOGIN succeeded\n");
 
-	if (evt_struct->xfer_iu->srp.login_rsp.req_lim_delta < 0)
-		dev_err(hostdata->dev, "Invalid request_limit.\n");
-
 	/* Now we know what the real request-limit is.
 	 * This value is set rather than added to request_limit because
 	 * request_limit could have been set to -1 by this client.
--

To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Brian King
Linux on Power Virtualization
IBM Linux Technology Center