Skip to content

Commit

Permalink
openamp/virtio.h: update vdev->features
Browse files Browse the repository at this point in the history
set vdev->features in virtio_negotiate_features

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
  • Loading branch information
wyr-7 committed Oct 8, 2024
1 parent ea2171f commit efddffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/include/openamp/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ static inline int virtio_negotiate_features(struct virtio_device *vdev,
return -ENXIO;

*final_features = vdev->func->negotiate_features(vdev, features);
vdev->features = *final_features;
return 0;
}

Expand Down

0 comments on commit efddffb

Please sign in to comment.