diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2016-08-19 15:20:07 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-23 22:42:43 -0400 |
commit | d8383b34e34ce32251317e15f8af3eda874c8ece (patch) | |
tree | 80ea1f0fa9e58c5126c20b335385cdbb1faa3e98 /drivers/scsi/be2iscsi/be_iscsi.c | |
parent | 96b48b9292a234e90e812a063f552e76672135b5 (diff) | |
download | linux-d8383b34e34ce32251317e15f8af3eda874c8ece.tar.gz linux-d8383b34e34ce32251317e15f8af3eda874c8ece.tar.bz2 linux-d8383b34e34ce32251317e15f8af3eda874c8ece.zip |
scsi: be2iscsi: Handle only NET_PARAM in iface_get_param
Wrong settings displayed for iface:
iface.header_digest = 192.168.197.22
iface.data_digest = 255.255.255.0
iface.immediate_data = 192.168.197.1
Process ISCSI_NET_PARAM only in beiscsi_iface_get_param.
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 1fe273db5853..fa415c41ba04 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c @@ -574,6 +574,8 @@ int beiscsi_iface_get_param(struct iscsi_iface *iface, struct be_cmd_get_def_gateway_resp gateway; int len = -EPERM; + if (param_type != ISCSI_NET_PARAM) + return 0; if (phba->state & BE_ADAPTER_PCI_ERR) { beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_CONFIG, "BS_%d : In PCI_ERROR Recovery\n"); |