diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2017-10-10 16:18:15 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 14:18:29 -0400 |
commit | c5905bf82287a9aada3e4b0b1d3425c6e1a91828 (patch) | |
tree | 05ab69e30d23377ac4ad387968cabcc57d4992bd /drivers/scsi/be2iscsi/be_cmds.h | |
parent | a39e9f71e5ed718256681f73740e866c8e572ec6 (diff) | |
download | linux-c5905bf82287a9aada3e4b0b1d3425c6e1a91828.tar.gz linux-c5905bf82287a9aada3e4b0b1d3425c6e1a91828.tar.bz2 linux-c5905bf82287a9aada3e4b0b1d3425c6e1a91828.zip |
scsi: be2iscsi: Fix _get_initname buffer overflow
be_cmd_get_initname pulls GET_HBA_NAME response of 276 bytes in embedded
WRB buffer of 236 bytes.
Use non-embedded functions to issue the IOCTL.
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/be_cmds.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_cmds.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h index 22ddfe918cfd..4f1ac97d9921 100644 --- a/drivers/scsi/be2iscsi/be_cmds.h +++ b/drivers/scsi/be2iscsi/be_cmds.h @@ -793,8 +793,6 @@ int beiscsi_cmd_mccq_create(struct beiscsi_hba *phba, struct be_queue_info *mccq, struct be_queue_info *cq); -unsigned int be_cmd_get_initname(struct beiscsi_hba *phba); - void free_mcc_wrb(struct be_ctrl_info *ctrl, unsigned int tag); int beiscsi_modify_eq_delay(struct beiscsi_hba *phba, struct be_set_eqd *, |