Merge tag 'rslib-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull reed-salomon library updates from Kees Cook: "Refactors rslib and callers to provide a per-instance allocation area instead of performing VLAs on the stack" * tag 'rslib-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: rslib: Allocate decoder buffers to avoid VLAs mtd: rawnand: diskonchip: Allocate rs control per instance rslib: Split rs control struct rslib: Simplify error path rslib: Remove GPL boilerplate rslib: Add SPDX identifiers rslib: Cleanup top level comments rslib: Cleanup whitespace damage dm/verity_fec: Use GFP aware reed solomon init rslib: Add GFP aware init function
This commit is contained in:
@@ -570,7 +570,7 @@ static void *fec_rs_alloc(gfp_t gfp_mask, void *pool_data)
|
||||
{
|
||||
struct dm_verity *v = (struct dm_verity *)pool_data;
|
||||
|
||||
return init_rs(8, 0x11d, 0, 1, v->fec->roots);
|
||||
return init_rs_gfp(8, 0x11d, 0, 1, v->fec->roots, gfp_mask);
|
||||
}
|
||||
|
||||
static void fec_rs_free(void *element, void *pool_data)
|
||||
|
Reference in New Issue
Block a user