|
@@ -1851,6 +1851,9 @@ static int ibmvscsi_do_host_config(struct ibmvscsi_host_data *hostdata,
|
|
|
|
|
|
host_config = &evt_struct->iu.mad.host_config;
|
|
|
|
|
|
+ /* The transport length field is only 16-bit */
|
|
|
+ length = min(0xffff, length);
|
|
|
+
|
|
|
/* Set up a lun reset SRP command */
|
|
|
memset(host_config, 0x00, sizeof(*host_config));
|
|
|
host_config->common.type = VIOSRP_HOST_CONFIG_TYPE;
|