Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/usb/misc/iowarrior.c iowarrior_ioctl() -> usb_set_report()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 4 | size | 0-4000000 |
| BUF_SIZE | 3 | buf | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 4 | size | 1 |
| DATA_SOURCE | 3 | buf | r _kzalloc_noprof |
| USER_PTR | 3 | buf | |
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct iowarrior)->mutex |
drivers/usb/misc/iowarrior.c iowarrior_write() -> usb_set_report()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | buf | 1-ptr_max |
| PARAM_VALUE | 4 | size | 1-1000000000,2147479552 |
| BUF_SIZE | 3 | buf | 1-1000000000,2147479552 |
| CAPPED_DATA | 4 | size | 1 |
| DATA_SOURCE | 3 | buf | r memdup_user |
| DATA_SOURCE | 4 | size | $2 |
| BYTE_COUNT | 3 | ==buf4 | 8050 |
| USER_PTR | 3 | buf | |
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct iowarrior)->mutex |