Skip to content
Commit cf2cf0f5 authored by Paul Bolle's avatar Paul Bolle Committed by Thomas Gleixner
Browse files

lguest: Read offset of device_cap later



Read the offset of the capability with type VIRTIO_PCI_CAP_DEVICE_CFG
only when we're sure we're going to need it. Which is when all checks
have passed and we know we have a virtio console with an emerg_wr field.

Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: lguest@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1457006501-5377-3-git-send-email-pebolle@tiscali.nl
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 7faf90ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment