mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
The sizeof(void *) is the incorrect argument in the kmalloc_array call, it
best to fix this by using sizeof(*cache_folios) instead.
Fortunately the sizes of void* and folio* happen to be the same, so this
has not shown up as a run time issue.
[[email protected]: fix build]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 2e227ff5e2 ("squashfs: add optional full compressed block caching")
Signed-off-by: Colin Ian King <[email protected]>
Cc: Phillip Lougher <[email protected]>
Cc: Chanho Min <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>