Home
last modified time | relevance | path

Searched refs:check_mul_overflow (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.15/tools/include/linux/
Doverflow.h62 #define check_mul_overflow(a, b, d) ({ \ macro
86 if (check_mul_overflow(a, b, &bytes)) in array_size()
108 if (check_mul_overflow(a, b, &bytes)) in array3_size()
110 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
120 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
/Linux-v5.15/include/linux/
Doverflow.h80 #define check_mul_overflow(a, b, d) __must_check_overflow(({ \ macro
135 if (check_mul_overflow(a, b, &bytes)) in array_size()
157 if (check_mul_overflow(a, b, &bytes)) in array3_size()
159 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
173 if (check_mul_overflow(a, b, &bytes)) in __ab_c_size()
Dslab.h627 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array()
646 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
680 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node()
Ddevice.h215 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
Dmm.h820 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
/Linux-v5.15/tools/include/tools/
Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
/Linux-v5.15/include/drm/
Ddrm_managed.h80 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
/Linux-v5.15/drivers/power/supply/
Dpower_supply_hwmon.c236 if (check_mul_overflow(pspval.intval, 100, in power_supply_hwmon_read()
272 if (check_mul_overflow(pspval.intval, 1000, in power_supply_hwmon_write()
/Linux-v5.15/tools/virtio/linux/
Dkernel.h125 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/Linux-v5.15/drivers/gpu/drm/tegra/
Dsubmit.c137 if (check_mul_overflow(count, size, &copy_len)) in alloc_copy_user_array()
167 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_utils.h132 if (check_mul_overflow(count, arr, &sz)) in __check_struct_size()
/Linux-v5.15/drivers/gpu/drm/qxl/
Dqxl_display.c206 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode()
208 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
/Linux-v5.15/include/rdma/
Duverbs_ioctl.h874 if (unlikely(check_mul_overflow(n, size, &bytes))) in uverbs_kcalloc()
/Linux-v5.15/drivers/video/fbdev/core/
Dfbmem.c1013 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var()
1014 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
/Linux-v5.15/arch/x86/kernel/
Dsmpboot.c2188 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in arch_scale_freq_tick()
/Linux-v5.15/Documentation/process/
Ddeprecated.rst95 check_mul_overflow() family of functions.
/Linux-v5.15/drivers/iio/adc/
Dxilinx-xadc-core.c619 if (check_mul_overflow(n, sizeof(*xadc->data), &new_size)) in xadc_update_scan_mode()
/Linux-v5.15/Documentation/translations/it_IT/process/
Ddeprecated.rst105 funzioni check_add_overflow() e check_mul_overflow().
/Linux-v5.15/arch/x86/kvm/svm/
Dsev.c2601 if (unlikely(check_mul_overflow(count, size, &bytes))) in sev_es_string_io()
/Linux-v5.15/fs/
Dio_uring.c4357 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
/Linux-v5.15/kernel/bpf/
Dverifier.c759 if (unlikely(check_mul_overflow(n, size, &bytes))) in copy_array()