Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 19 files:
- drivers/base/devres.c, line 1065
- drivers/char/tpm/eventlog/efi.c, line 95
- drivers/clk/renesas/rzg2l-cpg.c, line 1720
- drivers/gpio/gpio-sloppy-logic-analyzer.c, line 284
- drivers/hid/hid-goodix-spi.c, line 310
- drivers/iio/adc/ad_sigma_delta.c, line 545
- drivers/iio/industrialio-buffer.c, line 2463
- drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c, line 995
- drivers/iommu/arm/arm-smmu/arm-smmu-impl.c, line 94
- drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c, line 313
- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c, line 688
- drivers/mtd/spi-nor/sfdp.c, line 1355
- drivers/net/can/virtio_can.c, line 964
- drivers/perf/arm-cmn.c
- drivers/thermal/mediatek/lvts_thermal.c, line 903
- drivers/tty/serial/qcom_geni_serial.c, line 1309
- include/linux/device/devres.h, line 73
- lib/tests/fortify_kunit.c, line 363
- sound/soc/sof/intel/hda.c, line 1180
Smatch caller information:
drivers/leds/rgb/leds-group-multicolor.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 0,4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 0,8 |
| BUF_SIZE | 1 | ptr | 0,8 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/irqchip/irq-ast2700.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| BIT_INFO | 2 | new_size | 0x0,0x3fffffffff |
| BIT_INFO | 2 | new_size | 0x0,0x3fffffffff |
drivers/perf/arm-cmn.c arm_cmn_discover() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 2 | new_size | 0-9223372036854771712,9223372036854775809-u64max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BIT_INFO | 2 | new_size | 0x0,0x7fffffffffffffff |
| BIT_INFO | 2 | new_size | 0x0,0x7fffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/perf/arm-cmn.c arm_cmn_discover() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 2 | new_size | 0-9223372036854775806 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 0-3145704 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/adc/xilinx-xadc-core.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | ptr | 2,4160 |
| BUF_SIZE | 1 | ptr | 2,4160 |
| CAPPED_DATA | 2 | new_size | 1 |
| CAPPED_DATA | 2 | new_size | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| BIT_INFO | 2 | new_size | 0x0,0xffffffffff |
| BIT_INFO | 2 | new_size | 0x0,0xffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/iio/industrialio-buffer.c iio_push_to_buffers_with_ts_unaligned() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | new_size | |
| UNITS | 2 | new_size | unit_byte |
| HALF_LOCKED2 | &mpu3050->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | irq |
drivers/char/tpm/eventlog/efi.c tpm_read_log_efi() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 2 | new_size | 0-u32max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | 1-u32max |
| BUF_SIZE | 1 | ptr | 1-u32max |
| DATA_SOURCE | 1 | ptr | r devm_kmemdup |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new_size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/can/virtio_can.c virtio_can_restore() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 0-u32max |
| PARAM_VALUE | 3 | gfp | 3520 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/adc/xilinx-ams.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 8160 |
| BUF_SIZE | 1 | ptr | 8160 |
| CAPPED_DATA | 2 | new_size | 1 |
| CAPPED_DATA | 2 | new_size | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| BIT_INFO | 2 | new_size | 0x0,0xffffffffff |
| BIT_INFO | 2 | new_size | 0x0,0xffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
drivers/clk/renesas/rzg2l-cpg.c rzg2l_mod_clock_update_shared_mstop_clks() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/adc/ad_sigma_delta.c ad_sd_buffer_postenable() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->mutex |
sound/soc/sof/intel/hda.c find_acpi_adr_device() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | dev | $0 |
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c cavium_smmu_impl_init() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 464 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 456 |
| DATA_SOURCE | 1 | ptr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new_size | unit_byte |
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c nvidia_smmu_impl_init() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | ptr | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 488 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 456 |
| DATA_SOURCE | 1 | ptr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new_size | unit_byte |
drivers/tty/serial/qcom_geni_serial.c setup_fifos() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ptr | 1-u64max |
| PARAM_VALUE | 2 | new_size | 4-1020 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | 4-1020,2048 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &console_mutex |
drivers/mtd/spi-nor/sfdp.c spi_nor_parse_sccr_mc() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 4-512 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 1-1020 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hid/hid-goodix-spi.c goodix_hid_start() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | new_size | 1-u32max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new_size | unit_byte |
| HALF_LOCKED2 | &hid->driver_input_lock |
drivers/pinctrl/intel/pinctrl-intel-platform.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/pmbus/pmbus_core.c devm_krealloc_array() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 1-s32max |
| BUF_SIZE | 1 | ptr | 1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | ptr | $1 |
| DATA_SOURCE | 3 | gfp | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpio/gpio-sloppy-logic-analyzer.c gpio_la_poll_probe() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | *ptr | 0-255 |
| PARAM_VALUE | 2 | new_size | 10-1010111 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | ptr | 0,10-1010111 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| BYTE_COUNT | 1 | ==ptr2 | 8050 |
drivers/thermal/mediatek/lvts_thermal.c lvts_calibration_read() -> devm_krealloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node->properties | 4096-ptr_max |
| PARAM_VALUE | 2 | new_size | 0-4294967294 |
| PARAM_VALUE | 3 | gfp | 3264 |
| BUF_SIZE | 1 | ptr | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| BYTE_COUNT | 1 | ==ptr2 | 8050 |