Searched hist:"83 d87a4ddb3b4a42bb73b314b3d1acc3965a689f" (Results 1 – 1 of 1) sorted by relevance
/linux/kernel/ |
H A D | relay.c | diff 83d87a4ddb3b4a42bb73b314b3d1acc3965a689f Fri Sep 09 12:10:25 CEST 2022 wuchi <wuchi.zero@gmail.com> 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/20220909101025.82955-1-wuchi.zero@gmail.com Signed-off-by: wuchi <wuchi.zero@gmail.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|