Skip to contentSkip to conversation

scsi: target: iscsi: Extract auth functions

bug report Dan Carpenter 1 participant 1 message Jun 14, 2022 SCSI target

lore
Share & tools
lore
#0 lore raw

Hello Dmitry Bogdanov,

This is a semi-automatic email about new static checker warnings.

The patch a75fcb0912a5: "scsi: target: iscsi: Extract auth functions" from May 23, 2022, leads to the following Smatch complaint:

drivers/target/iscsi/iscsi_target_nego.c:830 iscsi_conn_auth_required()
error: we previously assumed 'se_nacl' could be null (see line 829)

drivers/target/iscsi/iscsi_target_nego.c
828 se_nacl = conn->sess->se_sess->se_node_acl;

   829		if (!se_nacl) {
                     ^^^^^^^

NULL

830 pr_debug("Unknown ACL %s is trying to connect\n",

   831				 se_nacl->initiatorname);
                                 ^^^^^^^^^^^^^^^^^^^^^^

Dereferenced

832 return true;

regards,
dan carpenter