Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/smb/client/cifs_unicode.c cifs_strndup_from_utf16() -> cifs_utf16_bytes()

Type Parameter Key Value
BUF_SIZE 0 from (-1),2-131062
BUF_SIZE 0 from (-1),2-131062
DATA_SOURCE 0 from $0
DATA_SOURCE 1 maxbytes $1
DATA_SOURCE 2 codepage $3
STR_LEN 0 from (-1)
STR_LEN 0 from (-1)
RX_PATH
TASK_NOT_RUNNING
UNITS 0 from unit_byte
UNITS 1 maxbytes unit_byte
HALF_LOCKED2 &ses->session_mutex

fs/smb/client/misc.c parse_dfs_referrals() -> cifs_utf16_bytes()

Type Parameter Key Value
PARAM_VALUE 0 from 4096-ptr_max
PARAM_VALUE 1 maxbytes 0-u16max
BUF_SIZE 0 from 2-2020204
BUF_SIZE 0 from 2-2020204
CAPPED_DATA 1 maxbytes 1
DATA_SOURCE 0 from r _kmalloc_noprof
DATA_SOURCE 2 codepage $4
RX_PATH
TASK_NOT_RUNNING