You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
squashfs: fix incorrect argument to sizeof in kmalloc_array call
[ Upstream commit 97103dc ]
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: 2e227ff ("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]>
Signed-off-by: Sasha Levin <[email protected]>
0 commit comments