iscsi: get the member after the NULL check
Change-Id: Ic427463d9e51af4262089ff0dae0dd19164b0995 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5332 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
5c9a8a3c41
commit
1665a80fda
@ -396,13 +396,14 @@ iscsi_send_tgts(struct spdk_iscsi_conn *conn, const char *iiqn,
|
||||
int total;
|
||||
int len;
|
||||
int rc;
|
||||
int previous_completed_size = conn->send_tgt_completed_size;
|
||||
int previous_completed_size = 0;
|
||||
bool no_buf_space = false;
|
||||
char tmp_buf[MAX_TMP_NAME_BUF];
|
||||
|
||||
if (conn == NULL) {
|
||||
return 0;
|
||||
}
|
||||
previous_completed_size = conn->send_tgt_completed_size;
|
||||
|
||||
total = data_len;
|
||||
if (alloc_len < 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user