Incrementing void pointers is undefined behavior. Fixes: baa6d3966351 ("fpga: Add scatterlist based programming") Signed-off-by: Moritz Fischer <mdf@xxxxxxxxxx> --- drivers/fpga/fpga-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index 6bd018f20793..3d9b8722f5ce 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -299,7 +299,7 @@ static int fpga_mgr_buf_load(struct fpga_manager *mgr, { struct page **pages; struct sg_table sgt; - const void *p; + const char *p; int nr_pages; int index; int rc; -- 2.36.0