mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 18:20:25 +02:00
scsi: target: iscsi: Fix np_ip_proto and np_sock_type in iscsit_setup_np
In the switch, np_ip_proto and np_sock_type set different values according to np_network_transport, and then uniformly assign values, so the previous values are overwritten. Signed-off-by: tangwenji <tang.wenji@zte.com.cn> Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ee26724af6
commit
1ea9b4633c
1 changed files with 0 additions and 3 deletions
|
|
@ -883,9 +883,6 @@ int iscsit_setup_np(
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
np->np_ip_proto = IPPROTO_TCP;
|
||||
np->np_sock_type = SOCK_STREAM;
|
||||
|
||||
ret = sock_create(sockaddr->ss_family, np->np_sock_type,
|
||||
np->np_ip_proto, &sock);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue