Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/nvme/host/auth.c nvme_auth_dhchap_setup_ctrl_response() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
BUF_SIZE 0 key s32min-s32max
DATA_SOURCE 0 key r nvme_auth_transform_key
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
LOCK2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_ctrl)->dhchap_auth_mutex

drivers/nvme/host/auth.c nvme_auth_free() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock

drivers/nvme/host/auth.c nvme_auth_free() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock

drivers/nvme/host/auth.c nvme_auth_init_ctrl() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 0,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
HALF_LOCKED2 global &nvmf_dev_mutex

drivers/nvme/host/auth.c nvme_auth_init_ctrl() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 0,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
HALF_LOCKED2 global &nvmf_dev_mutex

drivers/nvme/host/auth.c nvme_auth_reset_dhchap() -> nvme_auth_free_key()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/nvme/target/auth.c nvmet_auth_ctrl_hash() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
BUF_SIZE 0 key s32min-s32max
DATA_SOURCE 0 key r nvme_auth_transform_key
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
HALF_LOCKED2 &pool->lock

drivers/nvme/target/auth.c nvmet_auth_host_hash() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
BUF_SIZE 0 key s32min-s32max
DATA_SOURCE 0 key r nvme_auth_transform_key
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
HALF_LOCKED2 &pool->lock

drivers/nvme/target/auth.c nvmet_destroy_auth() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &epf->lock

drivers/nvme/target/auth.c nvmet_destroy_auth() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &epf->lock

drivers/nvme/target/auth.c nvmet_setup_auth() -> nvme_auth_free_key()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &nvmet_config_sem

drivers/nvme/target/auth.c nvmet_setup_auth() -> nvme_auth_free_key()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &nvmet_config_sem

drivers/nvme/target/auth.c nvmet_setup_auth() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->len 32,48,64
BUF_SIZE 0 key 0-s32max
BUF_SIZE 0 key 0-s32max
CAPPED_DATA 0 key->len 1
DATA_SOURCE 0 key r nvme_auth_extract_key
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
LOCK2 global &nvmet_config_sem

drivers/nvme/common/auth.c nvme_auth_extract_key() -> nvme_auth_free_key()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 0 key->hash 0
PARAM_VALUE 0 key->len 0-u32max
BUF_SIZE 0 key 0-s32max
BUF_SIZE 0 key 0-s32max
CAPPED_DATA 0 key->len 1
DATA_SOURCE 0 key r nvme_auth_alloc_key
BIT_INFO 0 key->len 0x0,0x7fffffffffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 key->len
HALF_LOCKED2 global &nvmet_config_sem

drivers/nvme/host/sysfs.c nvme_ctrl_dhchap_ctrl_secret_store() -> nvme_auth_free_key()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvme/host/sysfs.c nvme_ctrl_dhchap_secret_store() -> nvme_auth_free_key()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex