mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
This is to fix incorrect pointer arithmetic which caused wrong
OpRegion version returned, then VM driver got error to get wanted
VBT block. We need to be safe to return correct data, so force
pointer type for byte access.
Fixes: 49ba1a2976 ("vfio/pci: Add OpRegion 2.0+ Extended VBT support.")
Cc: Colin Xu <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: "Xu, Terrence" <[email protected]>
Cc: "Gao, Fred" <[email protected]>
Acked-by: Colin Xu <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[aw: line wrap]
Signed-off-by: Alex Williamson <[email protected]>