Skip to contentSkip to conversation

be2iscsi: including patch from Dan Carpenter

PATCH In review Jayamohan Kallickal 1 participant 1 message Jun 29, 2010

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

PATCH 6/12 be2iscsi: including patch from Dan Carpenter

This patch fixes a negative value being returned when
the return is declared as unsigned char.

---
 drivers/scsi/be2iscsi/be_mgmt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/be_mgmt.c +1 -1
index 7d4ac5c..3eba889 100644
@@ -81,7 +81,7 @@ unsigned char mgmt_check_supported_fw(struct be_ctrl_info *ctrl,
 		SE_DEBUG(DBG_LVL_1,
 			 "Failed to allocate memory for mgmt_check_supported_fw"
 			 "\n");
-		return -1;
+		return 1;
 	}
 	nonemb_cmd.size = sizeof(struct be_mgmt_controller_attributes);
 	req = nonemb_cmd.va;
Signature · 1 line
1.6.5.2