scsi: be2iscsi: Check all zeroes IP before issuing IOCTL
Redefine FW IP types. Before issuing IOCTL to clear IP, check if IP is all zeroes. All zeroes IP implies IP is not set in FW so FW fails that IOCTL. 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>
此提交包含在:
@@ -389,7 +389,7 @@ static ssize_t beiscsi_show_boot_tgt_info(void *data, int type, char *buf)
|
||||
(char *)&boot_sess->target_name);
|
||||
break;
|
||||
case ISCSI_BOOT_TGT_IP_ADDR:
|
||||
if (boot_conn->dest_ipaddr.ip_type == 0x1)
|
||||
if (boot_conn->dest_ipaddr.ip_type == BEISCSI_IP_TYPE_V4)
|
||||
rc = sprintf(buf, "%pI4\n",
|
||||
(char *)&boot_conn->dest_ipaddr.addr);
|
||||
else
|
||||
|
新增問題並參考
封鎖使用者