Home
last modified time | relevance | path

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

12

/Linux-v6.6/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-v6.6/block/partitions/
Damiga.c95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) { in amiga_partition()
125 if (check_mul_overflow(nr_hd, nr_sect, &cylblk)) { in amiga_partition()
142 if (check_mul_overflow(cylblk, blksize, &cylblk)) { in amiga_partition()
/Linux-v6.6/include/linux/
Dslab.h632 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array()
653 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
693 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node()
752 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
Doverflow.h96 #define check_mul_overflow(a, b, d) \ macro
191 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul()
Ddevice.h321 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
336 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in devm_krealloc_array()
/Linux-v6.6/tools/include/tools/
Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
/Linux-v6.6/kernel/bpf/
Dbloom_filter.c115 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc()
116 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
/Linux-v6.6/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-v6.6/include/drm/
Ddrm_managed.h81 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
/Linux-v6.6/tools/virtio/linux/
Dkernel.h122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/Linux-v6.6/drivers/iio/afe/
Diio-rescale.c44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
/Linux-v6.6/security/selinux/ss/
Dpolicydb.h373 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
/Linux-v6.6/drivers/gpu/drm/tegra/
Dsubmit.c166 if (check_mul_overflow(count, size, &copy_len)) in alloc_copy_user_array()
191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
/Linux-v6.6/drivers/iio/light/
Drohm-bu27034.c859 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1()
862 if (check_mul_overflow(helper, gain0, &tmp)) in bu27034_fixp_calc_t1()
875 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23()
/Linux-v6.6/drivers/gpu/drm/nouveau/
Dnouveau_drv.h195 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
/Linux-v6.6/arch/x86/kernel/cpu/
Daperfmperf.c360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
/Linux-v6.6/tools/perf/util/
Dutil.c521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
/Linux-v6.6/init/
Ddo_mounts.c90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dmlx5_core.h159 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) { in mlx5_flexible_inlen()
/Linux-v6.6/drivers/video/fbdev/core/
Dfbmem.c819 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var()
820 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
/Linux-v6.6/drivers/gpu/drm/qxl/
Dqxl_display.c209 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode()
211 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
/Linux-v6.6/drivers/iio/
Dindustrialio-gts-helper.c565 if (check_mul_overflow(gain, mul, &res)) in iio_gts_sanity_check()
/Linux-v6.6/mm/
Dutil.c700 if (unlikely(check_mul_overflow(n, size, &bytes))) in __vmalloc_array()
/Linux-v6.6/io_uring/
Dkbuf.c341 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
/Linux-v6.6/arch/s390/pci/
Dpci_dma.c573 if (unlikely(check_mul_overflow(n, sizeof(unsigned long), &bytes))) in bitmap_vzalloc()

12