mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Round up aligned_alloc() allocations
this fixes an address sanitizer splat Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
4915b450e2
commit
3420d86959
@ -16,6 +16,8 @@ static inline void *__vmalloc(unsigned long size, gfp_t gfp_mask)
|
||||
{
|
||||
void *p;
|
||||
|
||||
size = round_up(size, PAGE_SIZE);
|
||||
|
||||
run_shrinkers();
|
||||
|
||||
p = aligned_alloc(PAGE_SIZE, size);
|
||||
|
Loading…
Reference in New Issue
Block a user