summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi
diff options
context:
space:
mode:
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>2018-06-07 13:54:41 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2018-06-19 22:02:25 -0400
commita81dde7e0216d2520f04027d0dfbb94d9713e8b4 (patch)
treebfeed45784df668a309c557d9b19f5e426a6e4ab /drivers/scsi/be2iscsi
parentcda6d30e60c4abceee3ad4f80559b8e37385549c (diff)
downloadlinux-stable-a81dde7e0216d2520f04027d0dfbb94d9713e8b4.tar.gz
linux-stable-a81dde7e0216d2520f04027d0dfbb94d9713e8b4.tar.bz2
linux-stable-a81dde7e0216d2520f04027d0dfbb94d9713e8b4.zip
scsi: be2iscsi: Include null char in SET_HOST_DATA
FW needs NULL terminated driver version string. Signed-off-by: Ketan Mukadam <ketan.mukadam@broadcom.com> Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
index 2eb66df3e3d6..c10aac4dbc5e 100644
--- a/drivers/scsi/be2iscsi/be_cmds.c
+++ b/drivers/scsi/be2iscsi/be_cmds.c
@@ -1545,7 +1545,7 @@ int beiscsi_set_host_data(struct beiscsi_hba *phba)
snprintf((char *)ioctl->param.req.param_data,
sizeof(ioctl->param.req.param_data),
"Linux iSCSI v%s", BUILD_STR);
- ioctl->param.req.param_len = ALIGN(ioctl->param.req.param_len, 4);
+ ioctl->param.req.param_len = ALIGN(ioctl->param.req.param_len + 1, 4);
if (ioctl->param.req.param_len > BE_CMD_MAX_DRV_VERSION)
ioctl->param.req.param_len = BE_CMD_MAX_DRV_VERSION;
ret = be_mbox_notify(ctrl);