diff options
author | Zhenyu Wang <[email protected]> | 2021-11-25 13:13:28 +0800 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-11-30 11:41:49 -0700 |
commit | 8704e89349080bd640d1755c46d8cdc359a89748 (patch) | |
tree | b7c3d73fb4d2b2765f0088f0d58816675edd11d3 /net/lapb/lapb_timer.c | |
parent | 3b9a2d57930372fac8cc0291ed5cdbd443542ed6 (diff) |
vfio/pci: Fix OpRegion read
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: 49ba1a2976c8 ("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]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions