« Previous | Next » 

Revision 0cea71a2

ID0cea71a207508c2b8f563b2644ac46009832c8f4

Added by Michael S. Tsirkin over 11 years ago

virtio: don't mark unaccessed memory as dirty

offset of accessed buffer is calculated using iov_length, so it
can exceed accessed len. If that happens
math in len - offset wraps around, and size becomes wrong.
As real value is 0, so this is harmless but unnecessary.

Signed-off-by: Michael S. Tsirkin <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences