diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-09-01 18:35:20 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2022-09-02 12:05:19 +0300 |
commit | e9ea0b30ada008f4e65933f449db6894832cb242 (patch) | |
tree | 58af35252ddd2604f1afa331915c34da2ab6dbac /drivers/regulator/rpi-panel-attiny-regulator.c | |
parent | fe8f65b018effbf473f53af3538d0c1878b8b329 (diff) | |
download | linux-e9ea0b30ada008f4e65933f449db6894832cb242.tar.xz |
xen/grants: prevent integer overflow in gnttab_dma_alloc_pages()
The change from kcalloc() to kvmalloc() means that arg->nr_pages
might now be large enough that the "args->nr_pages << PAGE_SHIFT" can
result in an integer overflow.
Fixes: b3f7931f5c61 ("xen/gntdev: switch from kcalloc() to kvcalloc()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/YxDROJqu/RPvR0bi@kili
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/regulator/rpi-panel-attiny-regulator.c')
0 files changed, 0 insertions, 0 deletions