« Previous | Next » 

Revision 3a4f2816

ID3a4f2816fac1b0f9cc197bb2208ddf03dc7bc592

Added by Jan Kiszka over 11 years ago

vfio-pci: Fix BAR->VFIODevice translation in

DO_UPCAST is supposed to translate from the first member of a struct to
that struct, not from arbitrary ones. And it (usually) breaks the build
when neglecting this rule. Use container_of to fix the build breakage
and likely also the runtime behavior.

Signed-off-by: Jan Kiszka <>
aw: runtime behavior is actually the same, but clearly misuse of DO_UPCAST
Signed-off-by: Alex Williamson <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences