diff options
author | Eric Auger <eric.auger@redhat.com> | 2016-11-21 07:21:02 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-11-21 19:51:53 +0100 |
commit | 5ba6de98c78ac45166036516e34bec487887ba5d (patch) | |
tree | c7102457c64e098736aab3ca8a11c21b53a34116 /kernel/params.c | |
parent | vfio/pci: Drop unnecessary pcibios_err_to_errno() (diff) | |
download | linux-5ba6de98c78ac45166036516e34bec487887ba5d.tar.xz linux-5ba6de98c78ac45166036516e34bec487887ba5d.zip |
vfio: fix vfio_info_cap_add/shift
Capability header next field is an offset relative to the start of
the INFO buffer. tmp->next is assigned the proper value but iterations
implemented in vfio_info_cap_add and vfio_info_cap_shift use next
as an offset between the headers. When coping with multiple capabilities
this leads to an Oops.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'kernel/params.c')
0 files changed, 0 insertions, 0 deletions