aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorwuchi <[email protected]>2022-09-09 18:10:25 +0800
committerAndrew Morton <[email protected]>2022-10-03 14:21:43 -0700
commit83d87a4ddb3b4a42bb73b314b3d1acc3965a689f (patch)
tree408c35f2e47ba087912851ed3238b354ac584902 /lib/mpi/mpi-mod.c
parent7ec354baa2ad6dcf1b481a5a582293cec0eb2a67 (diff)
relay: use kvcalloc to alloc page array in relay_alloc_page_array
kvcalloc() is safer because it will check the integer overflows, and using it will simple the logic of allocation size. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: wuchi <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions