summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi
diff options
context:
space:
mode:
authorJames Bottomley2016-11-22 23:27:06 +0100
committerJames Bottomley2016-11-22 23:27:06 +0100
commitc65c945c31d071d1f8cd2c35541a6cdf80b5f835 (patch)
treea233f0c2ee30e40ec141d2e6041deffcd926dace /drivers/scsi/be2iscsi
parentMerge remote-tracking branch 'mkp-scsi/4.9/scsi-fixes' into fixes (diff)
parentscsi: be2iscsi: allocate enough memory in beiscsi_boot_get_sinfo() (diff)
downloadkernel-qcow2-linux-c65c945c31d071d1f8cd2c35541a6cdf80b5f835.tar.gz
kernel-qcow2-linux-c65c945c31d071d1f8cd2c35541a6cdf80b5f835.tar.xz
kernel-qcow2-linux-c65c945c31d071d1f8cd2c35541a6cdf80b5f835.zip
Merge remote-tracking branch 'mkp-scsi/4.9/scsi-fixes' into fixes
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r--drivers/scsi/be2iscsi/be_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c
index aebc4ddb3060..ac05317bba7f 100644
--- a/drivers/scsi/be2iscsi/be_mgmt.c
+++ b/drivers/scsi/be2iscsi/be_mgmt.c
@@ -1083,7 +1083,7 @@ unsigned int beiscsi_boot_get_sinfo(struct beiscsi_hba *phba)
nonemb_cmd = &phba->boot_struct.nonemb_cmd;
nonemb_cmd->size = sizeof(*resp);
nonemb_cmd->va = pci_alloc_consistent(phba->ctrl.pdev,
- sizeof(nonemb_cmd->size),
+ nonemb_cmd->size,
&nonemb_cmd->dma);
if (!nonemb_cmd->va) {
mutex_unlock(&ctrl->mbox_lock);