diff options
| author | Kees Cook <[email protected]> | 2025-04-26 06:23:29 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-02 11:19:52 +0000 |
| commit | 6f9a8ab796c6528d22de3c504c81fce7dde63d8a (patch) | |
| tree | 8103eb3b3f0f894ae5c304aa3d5fc0c1551b303c /net/unix/af_unix.c | |
| parent | btrfs: adjust subpage bit start based on sectorsize (diff) | |
| download | kernel-6f9a8ab796c6528d22de3c504c81fce7dde63d8a.tar.gz kernel-6f9a8ab796c6528d22de3c504c81fce7dde63d8a.zip | |
btrfs: compression: adjust cb->compressed_folios allocation type
In preparation for making the kmalloc() family of allocators type aware,
we need to make sure that the returned type from the allocation matches
the type of the variable being assigned. (Before, the allocator would
always return "void *", which can be implicitly cast to any pointer type.)
The assigned type is "struct folio **" but the returned type will be
"struct page **". These are the same allocation size (pointer size), but
the types don't match. Adjust the allocation type to match the assignment.
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
