File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3100,6 +3100,8 @@ void iscsi_conn_teardown(struct iscsi_cls_conn *cls_conn)
3100
3100
{
3101
3101
struct iscsi_conn * conn = cls_conn -> dd_data ;
3102
3102
struct iscsi_session * session = conn -> session ;
3103
+ char * tmp_persistent_address = conn -> persistent_address ;
3104
+ char * tmp_local_ipaddr = conn -> local_ipaddr ;
3103
3105
3104
3106
del_timer_sync (& conn -> transport_timer );
3105
3107
@@ -3121,8 +3123,6 @@ void iscsi_conn_teardown(struct iscsi_cls_conn *cls_conn)
3121
3123
spin_lock_bh (& session -> frwd_lock );
3122
3124
free_pages ((unsigned long ) conn -> data ,
3123
3125
get_order (ISCSI_DEF_MAX_RECV_SEG_LEN ));
3124
- kfree (conn -> persistent_address );
3125
- kfree (conn -> local_ipaddr );
3126
3126
/* regular RX path uses back_lock */
3127
3127
spin_lock_bh (& session -> back_lock );
3128
3128
kfifo_in (& session -> cmdpool .queue , (void * )& conn -> login_task ,
@@ -3134,6 +3134,8 @@ void iscsi_conn_teardown(struct iscsi_cls_conn *cls_conn)
3134
3134
mutex_unlock (& session -> eh_mutex );
3135
3135
3136
3136
iscsi_destroy_conn (cls_conn );
3137
+ kfree (tmp_persistent_address );
3138
+ kfree (tmp_local_ipaddr );
3137
3139
}
3138
3140
EXPORT_SYMBOL_GPL (iscsi_conn_teardown );
3139
3141
You can’t perform that action at this time.
0 commit comments