mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
The structure provided to the add_capability() function should only contain what comes after the capability ID and the next capability pointer, which are located on the first WORD. Because the structure TestCap included _vndr and _next fields, they were directly set after the first WORD, while the assertion was expecting to find the values of len and foo fields. Fixes #105 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>