]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: target: iscsi: Fix np_ip_proto and np_sock_type in iscsit_setup_np
authortangwenji <tang.wenji@zte.com.cn>
Wed, 13 Mar 2019 14:56:38 +0000 (22:56 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Mar 2019 00:36:39 +0000 (20:36 -0400)
commit1ea9b4633cda461f09b4476ff612d32d78e81c92
treefe610e6d8b9ace3930673145c7842ce617ff96c5
parentee26724af6c71a9db786c5809395b4853edd4d54
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>
drivers/target/iscsi/iscsi_target_login.c